summaryrefslogtreecommitdiff
path: root/test/ext/test_serializer.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-06-23 15:37:18 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-06-23 15:37:18 -0400
commite47f2e03ce02f1fa1b313970291a2c024620bd73 (patch)
tree53dd7c8180263b83e0dc57dbe765ca90675b72bf /test/ext/test_serializer.py
parentee8b7d317850dc0852116efe457751f41e7c6cf8 (diff)
downloadsqlalchemy-e47f2e03ce02f1fa1b313970291a2c024620bd73.tar.gz
2.5 compat
Diffstat (limited to 'test/ext/test_serializer.py')
-rw-r--r--test/ext/test_serializer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ext/test_serializer.py b/test/ext/test_serializer.py
index 63a3cbe91..0496479aa 100644
--- a/test/ext/test_serializer.py
+++ b/test/ext/test_serializer.py
@@ -78,6 +78,7 @@ class SerializeTest(fixtures.MappedTest):
assert serializer.loads(serializer.dumps(User.name, -1), None,
None) is User.name
+ @testing.requires.python26 # crashes in 2.5
def test_expression(self):
expr = \
select([users]).select_from(users.join(addresses)).limit(5)
@@ -88,6 +89,7 @@ class SerializeTest(fixtures.MappedTest):
eq_(re_expr.execute().fetchall(), [(7, u'jack'), (8, u'ed'),
(8, u'ed'), (8, u'ed'), (9, u'fred')])
+ @testing.requires.python26 # namedtuple workaround not serializable in 2.5
@testing.skip_if(lambda: util.pypy, "pickle sometimes has "
"problems here, sometimes not")
def test_query(self):
@@ -126,6 +128,7 @@ class SerializeTest(fixtures.MappedTest):
#eq_(q2.all(), [User(name='fred')])
#eq_(list(q2.values(User.id, User.name)), [(9, u'fred')])
+ @testing.requires.python26 # namedtuple workaround not serializable in 2.5
@testing.exclude('sqlite', '<=', (3, 5, 9),
'id comparison failing on the buildbot')
def test_aliases(self):