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.
2 parents 9d7e43b + 7a28995 commit beb474cCopy full SHA for beb474c
graalpython/com.oracle.graal.python.test/src/tests/test_struct.py
@@ -1,4 +1,4 @@
1
-# Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3
#
4
# The Universal Permissive License (UPL), Version 1.0
@@ -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