tests/basics/namedtuple1: Add test for creating with pos and kw args.
This commit is contained in:
parent
265500c5c8
commit
8f6ef8de48
@ -24,6 +24,9 @@ for t in T(1, 2), T(bar=1, foo=2):
|
|||||||
|
|
||||||
print(isinstance(t, tuple))
|
print(isinstance(t, tuple))
|
||||||
|
|
||||||
|
# Create using positional and keyword args
|
||||||
|
print(T(3, bar=4))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
t[0] = 200
|
t[0] = 200
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user