[Python-checkins] CVS: python/dist/src/Lib/test test_struct.py,1.10,1.11
Tim Peters
tim_one@users.sourceforge.net
Tue, 12 Jun 2001 18:26:37 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv17987/python/dist/src/Lib/test
Modified Files:
test_struct.py
Log Message:
The new {b,l}p_{u,}longlong() didn't check get_pylong()'s return for NULL.
Repaired that, and added appropriate tests for it to test_struct.py.
Index: test_struct.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_struct.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** test_struct.py 2001/06/12 01:22:21 1.10
--- test_struct.py 2001/06/13 01:26:35 1.11
***************
*** 315,317 ****
--- 315,323 ----
test_one_qQ(x)
+ # Some error cases.
+ for direction in "<>":
+ for letter in "qQ":
+ for badobject in "a string", 3+42j, randrange:
+ any_err(struct.pack, direction + letter, badobject)
+
test_std_qQ()