From f13068afaa6f305746d92517662e8c0956d31e7b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 18 Oct 2023 10:36:42 +0900 Subject: [PATCH] Escape method names containing control characters --- tool/lib/test/unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =