commit | 9f904398179bcbab4bf21b2500aa14aec01fbdb3 | [log] [tgz] |
---|---|---|
author | Armin Rigo <arigo@tunes.org> | Mon Sep 27 19:27:51 2004 +0000 |
committer | Armin Rigo <arigo@tunes.org> | Mon Sep 27 19:27:51 2004 +0000 |
tree | 6b4969e3c280dbc2313ccc35458fd012e525c18d | |
parent | b562bc672bff106f1cbf2aad7770b654bfe374ec [diff] |
Patch #1011240: SystemError generated by struct.pack('P', 'foo').
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 0641d9b..9332466 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py
@@ -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)