summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-02-20 00:23:36 -0700
committerDan Allen <dan.j.allen@gmail.com>2020-02-20 00:23:36 -0700
commita609703dc4e2f9bc3c3bdeaf2f76032e21eca1d0 (patch)
treee9e668a0b5c668d8e7162e90bef6e893962010bf /test
parent899bf38f81b09ddb5dd1ee2f2c57edb271ee5953 (diff)
fix tests on JRuby 9.2.10.0
Diffstat (limited to 'test')
-rw-r--r--test/test_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 7211c1e6..d9c5aa16 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -337,7 +337,9 @@ class Minitest::Test
(env ||= {})['RUBYOPT'] = nil unless kw_args[:use_bundler]
opts = { err: [:child, :out] }
if env
- if jruby? && (Gem::Version.new JRUBY_VERSION) < (Gem::Version.new '9.2.10.0')
+ # NOTE while JRuby 9.2.10.0 implements support for unsetenv_others, it doesn't work in child
+ #if jruby? && (Gem::Version.new JRUBY_VERSION) < (Gem::Version.new '9.2.10.0')
+ if jruby?
begin
old_env, env = ENV, (ENV.merge env)
env.each {|key, val| env.delete key if val.nil? } if env.value? nil