mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_gc.rb: read binary
* test/ruby/test_gc.rb (test_exception_in_finalizer): read in binary encoding to get rid of invalid byte sequence exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bca963220a
commit
69be362030
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ class TestGc < Test::Unit::TestCase
|
|||
|
||||
def test_exception_in_finalizer
|
||||
bug9168 = '[ruby-core:58652] [Bug #9168]'
|
||||
assert_normal_exit(<<-'end;', bug9168)
|
||||
assert_normal_exit(<<-'end;', bug9168, encoding: Encoding::ASCII_8BIT)
|
||||
raise_proc = proc {raise}
|
||||
10000.times do
|
||||
ObjectSpace.define_finalizer(Object.new, raise_proc)
|
||||
|
|
Loading…
Add table
Reference in a new issue