summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-12-20 12:44:11 -0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-23 08:32:09 +0900
commit1f23e6e7f0ab4a6efab598c1ee528bb52d40ee51 (patch)
treec8c5baf4589d8fb704f816dd2dc9b168c3f22320 /test
parentbdf20e604204024eae580fbd5f697e171e55ac2d (diff)
downloadpsych-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.rb2
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