summaryrefslogtreecommitdiff
path: root/test/ruby/test_syntax.rb
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2023-08-02 17:02:37 -0400
committerHiroshi SHIBATA <[email protected]>2023-08-03 09:11:08 +0900
commit4b6c584023f41827c891f33a16cb5db221b7cd19 (patch)
tree91ac7025ce294d7c69e659e5c413f95ba34d79dc /test/ruby/test_syntax.rb
parent29fd05036bc5b04c980a53a424b185a8a69cc839 (diff)
Remove --disable-gems for assert_separately
assert_separately adds --disable=gems so we don't need to add --disable-gems when calling assert_separately.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8162
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r--test/ruby/test_syntax.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 5b5666be10..bcc37e7bbb 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -13,8 +13,7 @@ class TestSyntax < Test::Unit::TestCase
def assert_syntax_files(test)
srcdir = File.expand_path("../../..", __FILE__)
srcdir = File.join(srcdir, test)
- assert_separately(%W[--disable-gem - #{srcdir}],
- __FILE__, __LINE__, <<-'eom', timeout: Float::INFINITY)
+ assert_separately(%W[- #{srcdir}], __FILE__, __LINE__, <<-'eom', timeout: Float::INFINITY)
dir = ARGV.shift
for script in Dir["#{dir}/**/*.rb"].sort
assert_valid_syntax(IO::read(script), script)