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:
parent
308183fffa
commit
bbd105c445
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue