mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Removed duplicate highlighting
This commit is contained in:
parent
b452c03a14
commit
0c6c937904
2 changed files with 3 additions and 2 deletions
|
@ -1407,6 +1407,9 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status|
|
|||
|
||||
message = e.full_message(highlight: true)
|
||||
assert_match(/\e/, message)
|
||||
assert_not_match(/(\e\[1)m\1/, message)
|
||||
e2 = assert_raise(RuntimeError) {raise RuntimeError, "", bt}
|
||||
assert_not_match(/(\e\[1)m\1/, e2.full_message(highlight: true))
|
||||
|
||||
message = e.full_message
|
||||
if Exception.to_tty?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue