File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 8282@testset " show" begin
8383 @test sprint (show, ScopedValue {Int} ()) == " Base.ScopedValues.ScopedValue{$Int }(undefined)"
8484 @test sprint (show, sval) == " Base.ScopedValues.ScopedValue{$Int }(1)"
85- @test sprint (show, Core. current_scope ()) == " nothing"
85+ if Core. current_scope () === nothing
86+ # Base.runtests uses @timed which introduces a scope for scheduler timing
87+ @test sprint (show, Core. current_scope ()) == " nothing"
88+ end
8689 with (sval => 2.0 ) do
8790 @test sprint (show, sval) == " Base.ScopedValues.ScopedValue{$Int }(2)"
8891 objid = sprint (show, Base. objectid (sval))
89- @test sprint (show, Core. current_scope ()) == " Base.ScopedValues.Scope(Base.ScopedValues.ScopedValue{$Int }@$objid => 2)"
92+ # Base.runtests uses @timed which introduces a scope for scheduler timing
93+ @test contains (sprint (show, Core. current_scope ()), " Base.ScopedValues.Scope(Base.ScopedValues.ScopedValue{$Int }@$objid => 2" )
9094 end
9195end
9296
You can’t perform that action at this time.
0 commit comments