summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--simplejson/tests/test_namedtuple.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/simplejson/tests/test_namedtuple.py b/simplejson/tests/test_namedtuple.py
index 8128f70..18da218 100644
--- a/simplejson/tests/test_namedtuple.py
+++ b/simplejson/tests/test_namedtuple.py
@@ -6,9 +6,15 @@ try:
from collections import namedtuple
except ImportError:
class Value(tuple):
+ def __new__(cls, *args):
+ return tuple.__new__(cls, args)
+
def _asdict(self):
return {'value': self[0]}
class Point(tuple):
+ def __new__(cls, *args):
+ return tuple.__new__(cls, args)
+
def _asdict(self):
return {'x': self[0], 'y': self[1]}
else: