Revive the test using US-ASCII incompatible symbol
This commit is contained in:
parent
4704bc0976
commit
96c8964e0e
@ -814,6 +814,10 @@ class TestMarshal < Test::Unit::TestCase
|
|||||||
assert_raise(ArgumentError, /\(given 1, expected 0\)/) {
|
assert_raise(ArgumentError, /\(given 1, expected 0\)/) {
|
||||||
ruby2_keywords_test(*[hash2])
|
ruby2_keywords_test(*[hash2])
|
||||||
}
|
}
|
||||||
|
hash2 = Marshal.load(data.sub(/:\x06K(?=T\z)/, "I\\&\x06:\x0dencoding\"\x0aUTF-7"))
|
||||||
|
assert_raise(ArgumentError, /\(given 1, expected 0\)/) {
|
||||||
|
ruby2_keywords_test(*[hash2])
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_invalid_byte_sequence_symbol
|
def test_invalid_byte_sequence_symbol
|
||||||
|
Loading…
x
Reference in New Issue
Block a user