diff options
author | Bob Ippolito <bob@redivi.com> | 2011-09-04 11:20:25 -0700 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2011-09-04 11:20:25 -0700 |
commit | 8a43bebf128dd3313cd6ce41f999020b1806beff (patch) | |
tree | fe81a46f17d67f3d8646712a9d3fde7955645ba5 /simplejson/tests | |
parent | d6f4c1baea2e93fa61ba9367f396ab15422bc725 (diff) | |
download | simplejson-8a43bebf128dd3313cd6ce41f999020b1806beff.tar.gz |
fix tests for py2.5pure-distutils
Diffstat (limited to 'simplejson/tests')
-rw-r--r-- | simplejson/tests/test_namedtuple.py | 6 |
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: |