Skip to content

Commit 6b780a4

Browse files
committed
enable test_struct.py:test_pack_varargs
1 parent bc37aad commit 6b780a4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_struct.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,11 @@ def test_iter_unpack():
261261
assert lh(it) == 0
262262

263263

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
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

Comments
 (0)