Issue #14177: marshal.loads() now raises TypeError when given an unicode string.

Patch by Guilherme Gonçalves.
This commit is contained in:
Antoine Pitrou 2012-03-03 02:35:32 +01:00
parent 679e9d36f7
commit 4a90ef0363
5 changed files with 15 additions and 6 deletions

View file

@ -38,7 +38,7 @@ class ExceptionTests(unittest.TestCase):
try:
try:
import marshal
marshal.loads('')
marshal.loads(b'')
except EOFError:
pass
finally: