- 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:38:37 +01:00
commit 0d3a003f24
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: