Repaired that, and added appropriate tests for it to test_struct.py.
pass
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()
{
int res;
v = get_pylong(v);
+ if (v == NULL)
+ return -1;
res = _PyLong_AsByteArray((PyLongObject *)v,
(unsigned char *)p,
8,
{
int res;
v = get_pylong(v);
+ if (v == NULL)
+ return -1;
res = _PyLong_AsByteArray((PyLongObject *)v,
(unsigned char *)p,
8,
{
int res;
v = get_pylong(v);
+ if (v == NULL)
+ return -1;
res = _PyLong_AsByteArray((PyLongObject*)v,
(unsigned char *)p,
8,
{
int res;
v = get_pylong(v);
+ if (v == NULL)
+ return -1;
res = _PyLong_AsByteArray((PyLongObject*)v,
(unsigned char *)p,
8,