mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
incompatible encoding workaround
* test/lib/minitest/unit.rb (puke): workaround incompatible encoding error messages. * test/lib/test/unit/assertions.rb (AllFailures.message): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
281f090bf1
commit
eecfa1fc7a
2 changed files with 2 additions and 2 deletions
test/lib
|
@ -998,7 +998,7 @@ module MiniTest
|
|||
else
|
||||
@errors += 1
|
||||
bt = MiniTest::filter_backtrace(e.backtrace).join "\n "
|
||||
"Error:\n#{klass}##{meth}:\n#{e.class}: #{e.message}\n #{bt}\n"
|
||||
"Error:\n#{klass}##{meth}:\n#{e.class}: #{e.message.b}\n #{bt}\n"
|
||||
end
|
||||
@report << e
|
||||
e[0, 1]
|
||||
|
|
|
@ -801,7 +801,7 @@ eom
|
|||
total = @count.to_s
|
||||
fmt = "%#{total.size}d"
|
||||
@failures.map {|k, (n, v)|
|
||||
"\n#{i+=1}. [#{fmt%n}/#{total}] Assertion for #{k.inspect}\n#{v.message.gsub(/^/, ' | ')}"
|
||||
"\n#{i+=1}. [#{fmt%n}/#{total}] Assertion for #{k.inspect}\n#{v.message.b.gsub(/^/, ' | ')}"
|
||||
}.join("\n")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue