1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Exclude option_parser from Test::Unit::Runner#inspect

This commit is contained in:
Nobuyoshi Nakada 2021-09-12 03:51:19 +09:00
parent 308183fffa
commit bbd105c445
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -1441,6 +1441,14 @@ module Test
end
end
def inspect
"#<#{self.class.name}: " <<
instance_variables.filter_map do |var|
next if var == :@option_parser # too big
"#{var}=#{instance_variable_get(var).inspect}"
end.join(", ") << ">"
end
##
# Top level driver, controls all output and filtering.