We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453d042 commit 8175016Copy full SHA for 8175016
graalpython/com.oracle.graal.python.test/src/tests/test_struct.py
@@ -259,3 +259,13 @@ def test_iter_unpack():
259
assert lh(it) == 0
260
assert_raises(StopIteration, next, it)
261
262
+
263
264
+def test_pack_varargs():
265
+ assert struct.Struct(">B").pack(3) == b'\x03'
266
+ raised = False
267
+ try:
268
+ struct.Struct(">B").pack(3, kw=1)
269
+ except TypeError:
270
+ raised = True
271
+ assert raised
0 commit comments