[ruby/irb] Remove unecesary and harmful pend for TruffleRuby in TestRaiseNoBacktraceException
* Specifically the second one causes `$HOME` to be unset, which breaks `File.expand_path('~')`. https://github.com/ruby/irb/commit/61963305f5
This commit is contained in:
parent
c6f439a6a8
commit
8d7844235c
@ -4,7 +4,6 @@ require 'test/unit'
|
||||
module TestIRB
|
||||
class TestRaiseNoBacktraceException < Test::Unit::TestCase
|
||||
def test_raise_exception
|
||||
pend if RUBY_ENGINE == 'truffleruby'
|
||||
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
|
||||
assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<-IRB, /Exception: foo/, [])
|
||||
e = Exception.new("foo")
|
||||
@ -23,7 +22,6 @@ IRB
|
||||
end
|
||||
|
||||
def test_raise_exception_with_different_encoding_containing_invalid_byte_sequence
|
||||
pend if RUBY_ENGINE == 'truffleruby'
|
||||
backup_home = ENV["HOME"]
|
||||
Dir.mktmpdir("test_irb_raise_no_backtrace_exception_#{$$}") do |tmpdir|
|
||||
ENV["HOME"] = tmpdir
|
||||
|
Loading…
x
Reference in New Issue
Block a user