[ruby/irb] Restore encoding in InputCompletor test
(https://github.com/ruby/irb/pull/732) https://github.com/ruby/irb/commit/ef77c232cf
This commit is contained in:
parent
eb3be1dfef
commit
75fb3cf458
@ -268,12 +268,14 @@ module TestIRB
|
|||||||
|
|
||||||
class DeprecatedInputCompletorTest < TestCase
|
class DeprecatedInputCompletorTest < TestCase
|
||||||
def setup
|
def setup
|
||||||
|
save_encodings
|
||||||
@verbose, $VERBOSE = $VERBOSE, nil
|
@verbose, $VERBOSE = $VERBOSE, nil
|
||||||
IRB.init_config(nil)
|
IRB.init_config(nil)
|
||||||
IRB.conf[:MAIN_CONTEXT] = IRB::Context.new(IRB::WorkSpace.new(binding))
|
IRB.conf[:MAIN_CONTEXT] = IRB::Context.new(IRB::WorkSpace.new(binding))
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
restore_encodings
|
||||||
$VERBOSE = @verbose
|
$VERBOSE = @verbose
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user