Skip to content
Snippets Groups Projects
Commit 8f6ef8de authored by Damien George's avatar Damien George
Browse files

tests/basics/namedtuple1: Add test for creating with pos and kw args.

parent 265500c5
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,9 @@ for t in T(1, 2), T(bar=1, foo=2):
print(isinstance(t, tuple))
# Create using positional and keyword args
print(T(3, bar=4))
try:
t[0] = 200
except TypeError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment