Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_struct.py @ 33599:32df1d05cb2d legacy-trunk
Patch #1011240: SystemError generated by struct.pack('P', 'foo').
| author | Armin Rigo <arigo@tunes.org> |
|---|---|
| date | Mon, 27 Sep 2004 19:27:51 +0000 |
| parents | 71a294bd7950 |
| children | b825e6227366 29ae5e0fc348 |
line wrap: on
line diff
--- a/Lib/test/test_struct.py Mon Sep 27 17:49:00 2004 +0000 +++ b/Lib/test/test_struct.py Mon Sep 27 19:27:51 2004 +0000 @@ -54,6 +54,7 @@ simple_err(struct.pack, 'iii', 3) simple_err(struct.pack, 'i', 3, 3, 3) simple_err(struct.pack, 'i', 'foo') +simple_err(struct.pack, 'P', 'foo') simple_err(struct.unpack, 'd', 'flap') s = struct.pack('ii', 1, 2) simple_err(struct.unpack, 'iii', s)
