summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/class_store_class.py
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2014-12-20 16:37:40 +0100
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-01 14:53:23 +0200
commit12340147b0ace7c1feeaf36b618c92652bdb849f (patch)
tree7bb43cac6b4c46f27607e5ac7a1dabfaf5db31c1 /tests/basics/class_store_class.py
parent8422cac0888ed9694ec84f3bac8d6edc3d39e911 (diff)
downloadmicropython-12340147b0ace7c1feeaf36b618c92652bdb849f.tar.gz
micropython-12340147b0ace7c1feeaf36b618c92652bdb849f.zip
py: Use sequence of strings for named tuple initialization
- remove single string initialization style - take list of strings instead - store list in the type for fast lookup
Diffstat (limited to 'tests/basics/class_store_class.py')
-rw-r--r--tests/basics/class_store_class.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basics/class_store_class.py b/tests/basics/class_store_class.py
index 60f65220d9..09a8e8bc4d 100644
--- a/tests/basics/class_store_class.py
+++ b/tests/basics/class_store_class.py
@@ -7,7 +7,7 @@ try:
except ImportError:
from _collections import namedtuple
-_DefragResultBase = namedtuple('DefragResult', 'foo bar')
+_DefragResultBase = namedtuple('DefragResult', [ 'foo', 'bar' ])
class _ResultMixinStr(object):
def encode(self):