From 998a3981894a7c558467104066356edd9ca4bf31 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 16 Oct 2012 00:48:04 +0000 Subject: merge revision(s) 37201,37202: * test/ruby/test_regexp.rb (TextRegexp#test_raw_hyphen_and_tk_char_type_after_range): ignoring warnings are already set in setup method. * test/ruby/test_regexp.rb (TextRegexp#test_raw_hyphen_and_tk_char_type_after_range): use Regexp.new instead of literal to ignore a parser warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_regexp.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 30adfefe1e..3073a98b89 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -870,11 +870,7 @@ class TestRegexp < Test::Unit::TestCase def test_raw_hyphen_and_tk_char_type_after_range bug6853 = '[ruby-core:47115]' - begin - verbose, $VERBOSE = $VERBOSE, nil - check(/[0-1-\s]/, [' ', '-'], [], bug6853) - ensure - $VERBOSE = verbose - end + # use Regexp.new instead of literal to ignore a parser warning. + check(Regexp.new('[0-1-\\s]'), [' ', '-'], ['2', 'a'], bug6853) end end -- cgit v1.2.3