summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-03-03 01:35:32 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-03-03 01:35:32 (GMT)
commit4a90ef03637fdc1bc63ee9be82fbf22cbaa68662 (patch)
treef6424020b09897e21e82740669a5ea1d2583e9da /Lib/test/test_exceptions.py
parent679e9d36f78de3ac18abaaddbcf4f73fcef55b7e (diff)
downloadcpython-4a90ef03637fdc1bc63ee9be82fbf22cbaa68662.zip
cpython-4a90ef03637fdc1bc63ee9be82fbf22cbaa68662.tar.gz
cpython-4a90ef03637fdc1bc63ee9be82fbf22cbaa68662.tar.bz2
Issue #14177: marshal.loads() now raises TypeError when given an unicode string.
Patch by Guilherme Gonçalves.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 0a7ddd4..7a2dd0c 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -38,7 +38,7 @@ class ExceptionTests(unittest.TestCase):
try:
try:
import marshal
- marshal.loads('')
+ marshal.loads(b'')
except EOFError:
pass
finally: