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

pull/3182/merge
Damien George 2017-06-29 17:49:10 +10:00
rodzic 265500c5c8
commit 8f6ef8de48
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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