]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
don't rely on unicode repr() output
authorPhilip Jenvey <pjenvey@underboss.org>
Tue, 21 Jul 2009 01:14:56 +0000 (01:14 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Tue, 21 Jul 2009 01:14:56 +0000 (01:14 +0000)
test/orm/inheritance/test_manytomany.py

index f7e676bbbcf76d1b3b3a9692d33222269f499cbc..7b6ad04eb20f3c7fe925e1d6009efbb2ef897e77 100644 (file)
@@ -194,11 +194,11 @@ class InheritTest3(_base.MappedTest):
         b.foos.append(Foo("foo #1"))
         b.foos.append(Foo("foo #2"))
         sess.flush()
-        compare = repr(b) + repr(sorted([repr(o) for o in b.foos]))
+        compare = [repr(b)] + sorted([repr(o) for o in b.foos])
         sess.expunge_all()
         l = sess.query(Bar).all()
         print repr(l[0]) + repr(l[0].foos)
-        found = repr(l[0]) + repr(sorted([repr(o) for o in l[0].foos]))
+        found = [repr(l[0])] + sorted([repr(o) for o in l[0].foos])
         eq_(found, compare)
 
     @testing.fails_on('maxdb', 'FIXME: unknown')