diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-10-18 10:36:42 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-10-18 10:36:42 +0900 |
commit | f13068afaa6f305746d92517662e8c0956d31e7b (patch) | |
tree | 932d2660bdbc7c24a9653a6cadb79887de896728 /tool/lib/test | |
parent | 6c46ccf226bc6440743b51af713864c062eba27f (diff) |
Escape method names containing control characters
Diffstat (limited to 'tool/lib/test')
-rw-r--r-- | tool/lib/test/unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 87e05ea62e..539ba1073c 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -1547,7 +1547,7 @@ module Test _start_method(inst) inst._assertions = 0 - print "#{suite}##{method} = " if @verbose + print "#{suite}##{method.inspect.sub(/\A:/, '')} = " if @verbose start_time = Time.now if @verbose result = |