зеркало из https://github.com/github/ruby.git
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:
Родитель
281f090bf1
Коммит
eecfa1fc7a
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче