mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #14177: marshal.loads() now raises TypeError when given an unicode string.
Patch by Guilherme Gonçalves.
This commit is contained in:
parent
679e9d36f7
commit
4a90ef0363
5 changed files with 15 additions and 6 deletions
|
@ -38,7 +38,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
try:
|
||||
try:
|
||||
import marshal
|
||||
marshal.loads('')
|
||||
marshal.loads(b'')
|
||||
except EOFError:
|
||||
pass
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue