diff options
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r-- | test/ruby/test_parse.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 9f83598ceb..eca1744b96 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -869,9 +869,9 @@ x = __ENCODING__ def test_named_capture_conflict a = 1 - assert_warning(/named capture conflict/) {eval("a = 1; /(?<a>)/ =~ ''")} + assert_warning('') {eval("a = 1; /(?<a>)/ =~ ''")} a = "\u{3042}" - assert_warning(/#{a}/) {eval("#{a} = 1; /(?<#{a}>)/ =~ ''")} + assert_warning('') {eval("#{a} = 1; /(?<#{a}>)/ =~ ''")} end =begin |