Skip to content

Commit

Permalink
Allow ANSI escape codes in precompile test stacktrace
Browse files Browse the repository at this point in the history
This test was failing when run locally (depends on display).
Similar to #36858.
  • Loading branch information
timholy committed Nov 28, 2020
1 parent ab94776 commit 65a7065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ precompile_test_harness(false) do dir
error("break me")
end
""")
@test_warn "LoadError: break me\nStacktrace:\n [1] error" try
@test_warn r"LoadError: break me\nStacktrace:\n \[1\] [\e01m\[]*error" try
Base.require(Main, :FooBar2)
error("the \"break me\" test failed")
catch exc
Expand Down

0 comments on commit 65a7065

Please sign in to comment.