Skip to content

Commit 40e4796

Browse files
authored
Allow ANSI escape codes in precompile test stacktrace (#38595)
This test was failing when run locally (depends on display). Similar to #36858.
1 parent 96d59f9 commit 40e4796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/precompile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ precompile_test_harness(false) do dir
478478
error("break me")
479479
end
480480
""")
481-
@test_warn "LoadError: break me\nStacktrace:\n [1] error" try
481+
@test_warn r"LoadError: break me\nStacktrace:\n \[1\] [\e01m\[]*error" try
482482
Base.require(Main, :FooBar2)
483483
error("the \"break me\" test failed")
484484
catch exc

0 commit comments

Comments
 (0)