Skip to content

Commit

Permalink
Fix test failures on Ruby 1.8.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
philr committed Feb 26, 2020
1 parent 83bdd0e commit e0e66f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_utils.rb
Expand Up @@ -116,7 +116,7 @@ def assert_array_same_items(expected, actual, msg = nil)
end

def assert_sub_process_returns(expected_lines, code, extra_load_path = [], required = ['tzinfo'])
if RUBY_ENGINE == 'jruby' && JRUBY_VERSION.start_with?('9.0.') && RbConfig::CONFIG['host_os'] =~ /mswin/
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' && JRUBY_VERSION.start_with?('9.0.') && RbConfig::CONFIG['host_os'] =~ /mswin/
skip('JRuby 9.0 on Windows cannot handle writing to the IO instance returned by popen')
end

Expand Down

0 comments on commit e0e66f8

Please sign in to comment.