ruby-changes:58409
From: Hiroshi <ko1@a...>
Date: Thu, 24 Oct 2019 20:58:51 +0900 (JST)
Subject: [ruby-changes:58409] dc44ab2913 (master): Revert "[ruby/fiddle] Fix a failing test (#13)"
https://git.ruby-lang.org/ruby.git/commit/?id=dc44ab2913 From dc44ab2913719a7d9b78012f277b9fe02868c172 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 24 Oct 2019 19:53:33 +0900 Subject: Revert "[ruby/fiddle] Fix a failing test (#13)" This reverts commit 5ebb0d50f6560b35bc03deb79341a115c5f782ee. diff --git a/test/fiddle/test_import.rb b/test/fiddle/test_import.rb index e243105..99294ea 100644 --- a/test/fiddle/test_import.rb +++ b/test/fiddle/test_import.rb @@ -149,18 +149,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_import.rb#L149 end def test_no_message_with_debug - # disable all Ruby environment variables - orig_RUBYOPT, ENV['RUBYOPT'] = ENV['RUBYOPT'], nil - orig_RUBYLIB, ENV['RUBYLIB'] = ENV['RUBYLIB'], nil - - # load development fiddle instead of bundled one - libdir = File.expand_path('../../../lib', __FILE__) - ENV['RUBYLIB'] = libdir if File.file?(File.join(libdir, "fiddle/import.rb")) - assert_in_out_err(%w[--debug --disable=gems -rfiddle/import], 'p Fiddle::Importer', ['Fiddle::Importer']) - ensure - ENV['RUBYLIB'] = orig_RUBYLIB - ENV['RUBYOPT'] = orig_RUBYOPT end end end if defined?(Fiddle) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/