diff options
author | Jeremy Evans <code@jeremyevans.net> | 2022-12-20 12:44:11 -0800 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-23 08:32:09 +0900 |
commit | 1f23e6e7f0ab4a6efab598c1ee528bb52d40ee51 (patch) | |
tree | c8c5baf4589d8fb704f816dd2dc9b168c3f22320 /test | |
parent | bdf20e604204024eae580fbd5f697e171e55ac2d (diff) | |
download | psych-1f23e6e7f0ab4a6efab598c1ee528bb52d40ee51.tar.gz |
Always issue deprecation warning when calling Regexp.new with 3rd positional argument
Previously, only certain values of the 3rd argument triggered a
deprecation warning.
First step for fix for bug #18797. Support for the 3rd argument
will be removed after the release of Ruby 3.2.
Fix minor fallout discovered by the tests.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_yaml.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index e12b976..32dd43b 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -34,7 +34,7 @@ class Psych_Unit_Tests < Psych::TestCase # [ruby-core:34969] def test_regexp_with_n - assert_cycle(Regexp.new('',0,'n')) + assert_cycle(Regexp.new('',Regexp::NOENCODING)) end # # Tests modified from 00basic.t in Psych.pm |