aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_specification.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-04-05 19:58:29 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 07:38:50 +0900
commit1464719f5feabaa237902e59f482792641901c1a (patch)
treed56bfc8e0dcf16570d692e3e35d16130583b5d84 /test/rubygems/test_gem_specification.rb
parentbb3d80bbbe0603e9f9689a96c7ce86682053b4dd (diff)
downloadruby-1464719f5feabaa237902e59f482792641901c1a.tar.gz
[rubygems/rubygems] Only run the $SAFE test on MRI < 2.7
* Other Ruby implementations don't support $SAFE. https://github.com/rubygems/rubygems/commit/9a4ba16efa
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r--test/rubygems/test_gem_specification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 21cd7c87b3..875d27761c 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -944,7 +944,7 @@ dependencies: []
assert_equal File.join(@tempdir, 'a-2.gemspec'), spec.loaded_from
end
- if RUBY_VERSION < '2.7'
+ if RUBY_ENGINE == 'ruby' and RUBY_VERSION < '2.7'
def test_self_load_tainted
full_path = @a2.spec_file
write_file full_path do |io|