From b85bcd671c5dced62fa00f2e3c0c5541b0d16593 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 19 Sep 2016 16:59:49 +0300 Subject: [PATCH] tests/struct1: Test "l" specifier to improve coverage. --- tests/basics/struct1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/basics/struct1.py b/tests/basics/struct1.py index 857e171c10..1abe34b4c5 100644 --- a/tests/basics/struct1.py +++ b/tests/basics/struct1.py @@ -10,6 +10,8 @@ print(struct.unpack(">bI", b"\x80\0\0\x01\0")) # 32-bit little-endian specific #print(struct.unpack("bI", b"\x80\xaa\x55\xaa\0\0\x01\0")) +print(struct.pack("l", 1)) print(struct.pack("i", 1)) print(struct.pack("