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

This commit is contained in:
Damien George 2017-06-29 17:49:10 +10:00
parent 265500c5c8
commit 8f6ef8de48
1 changed files with 3 additions and 0 deletions

View File

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