diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-11-30 14:03:12 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-12-01 08:23:05 +0900 |
commit | a2fc6a51dd2e1a153559038795e1e2509f9c6a94 (patch) | |
tree | d81ddeb6e1984afe76bb85c06a316e4e3c8a7716 /tool | |
parent | fa0f3eff228bb26de6d5b0e1238b1f358165dbd0 (diff) |
[ruby/fileutils] Fix test failure under ruby 2.4
`Exception#full_message` is only defined on ruby 2.5.0 and above.
https://github.com/ruby/fileutils/commit/a8968f41ed
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/test/unit/core_assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/test/unit/core_assertions.rb b/tool/lib/test/unit/core_assertions.rb index b2566561ce..00555d6e32 100644 --- a/tool/lib/test/unit/core_assertions.rb +++ b/tool/lib/test/unit/core_assertions.rb @@ -381,7 +381,7 @@ eom msg = "exceptions on #{errs.length} threads:\n" + errs.map {|t, err| "#{t.inspect}:\n" + - err.full_message(highlight: false, order: :top) + RUBY_VERSION >= "2.5.0" ? err.full_message(highlight: false, order: :top) : err.message }.join("\n---\n") if message msg = "#{message}\n#{msg}" |