diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-04-05 19:58:29 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-08 07:38:50 +0900 |
commit | 1464719f5feabaa237902e59f482792641901c1a (patch) | |
tree | d56bfc8e0dcf16570d692e3e35d16130583b5d84 /test/rubygems/test_gem_specification.rb | |
parent | bb3d80bbbe0603e9f9689a96c7ce86682053b4dd (diff) | |
download | ruby-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.rb | 2 |
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| |