@test_logs and the VSCode Testing pane

I’m using @test_logs to verify that a certain warning message is issued under certain conditions. This seems to work fine when running via ]test, but when I run by hitting the green “play” triangle in the VSCode Testing pane, I get this error:

ERROR: LoadError: MethodError: no method matching scrub_backtrace(::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})

My test code looks something like this:

@testitem "Data reading" begin
    include("test_includes.jl")
    arg = something()

    @test_logs (:warn, Regex("my regex")) begin
        my_function(arg)
    end
end

I don’t have a real reproducible example right now because this is in the tests for some code that I can’t share, but I wanted to ask in case this has been seen before.