From 8f6ef8de4876442b1b4a0cdee08ec9d205a8921a Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 29 Jun 2017 17:49:10 +1000 Subject: [PATCH] tests/basics/namedtuple1: Add test for creating with pos and kw args. --- tests/basics/namedtuple1.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/basics/namedtuple1.py b/tests/basics/namedtuple1.py index b9a007240c..15e3b785ed 100644 --- a/tests/basics/namedtuple1.py +++ b/tests/basics/namedtuple1.py @@ -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: