mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
- Issue #14177: marshal.loads() now raises TypeError when given an unicode
string. Patch by Guilherme Gonçalves.
This commit is contained in:
commit
0d3a003f24
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