summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-21 08:37:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-23 13:37:40 +0900
commit8a7e0aaaef3b19f90d6debe6781e4b3031f56237 (patch)
treee4c6fb0dd79b1d856cd8a200f550170114bbf30a /test/openssl
parent6298ec2875a6f1a1e75698c96ceac94362f20bcf (diff)
Warn non-nil `$/` [Feature #14240]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2920
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_pair.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb
index e9cf98df15..a77abfd923 100644
--- a/test/openssl/test_pair.rb
+++ b/test/openssl/test_pair.rb
@@ -160,10 +160,10 @@ module OpenSSL::TestPairM
ssl_pair {|s1, s2|
begin
old = $/
- $/ = '*'
+ EnvUtil.suppress_warning {$/ = '*'}
s1.puts 'a'
ensure
- $/ = old
+ EnvUtil.suppress_warning {$/ = old}
end
s1.close
assert_equal("a\n", s2.read)