Skip to content

Commit 8f6ef8d

Browse files
committed
tests/basics/namedtuple1: Add test for creating with pos and kw args.
1 parent 265500c commit 8f6ef8d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/basics/namedtuple1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
print(isinstance(t, tuple))
2626

27+
# Create using positional and keyword args
28+
print(T(3, bar=4))
29+
2730
try:
2831
t[0] = 200
2932
except TypeError:

0 commit comments

Comments
 (0)