diff options
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r-- | test/ruby/envutil.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 93f054724f..5e665e54dd 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -415,8 +415,8 @@ eom result = File.__send__(predicate, *args) result = !result if neg mesg = "Expected file " << args.shift.inspect - mesg << mu_pp(args) unless args.empty? mesg << "#{neg} to be #{predicate}" + mesg << mu_pp(args).sub(/\A\[(.*)\]\z/m, '(\1)') unless args.empty? mesg << " #{failure_message}" if failure_message assert(result, mesg) end |