Patch #1011240: SystemError generated by struct.pack('P', 'foo').

This commit is contained in:
Armin Rigo 2004-09-27 19:27:51 +00:00
parent b562bc672b
commit 9f90439817
2 changed files with 10 additions and 7 deletions

View file

@ -54,6 +54,7 @@ if sz * 3 != sz3:
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)