diff options
author | Ian Delaney <della5@iinet.com.au> | 2013-08-19 20:46:09 +0800 |
---|---|---|
committer | Ian Delaney <della5@iinet.com.au> | 2013-08-19 20:46:09 +0800 |
commit | 0a37e221a3fc07dbb12d11de666091b9448d55cc (patch) | |
tree | c05834f2df62b880a2a79d6300fe95374e1878a4 /test/orm/test_unitofwork.py | |
parent | a296de0fbb2cb54b770c4d53c2781a3db61e7bd7 (diff) | |
download | sqlalchemy-pr/22.tar.gz |
Adjusted fix for skipping tests unsupported by pypy in 0.8.xpr/22
Diffstat (limited to 'test/orm/test_unitofwork.py')
-rw-r--r-- | test/orm/test_unitofwork.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/orm/test_unitofwork.py b/test/orm/test_unitofwork.py index ced65aadf..0440a090a 100644 --- a/test/orm/test_unitofwork.py +++ b/test/orm/test_unitofwork.py @@ -17,7 +17,7 @@ from sqlalchemy.orm import mapper, relationship, create_session, \ from sqlalchemy.testing import fixtures from test.orm import _fixtures from sqlalchemy.testing.assertsql import AllOf, CompiledSQL -import unittest, sys +from sqlalchemy import testing, util class UnitOfWorkTest(object): pass @@ -160,7 +160,7 @@ class UnicodeSchemaTest(fixtures.MappedTest): @testing.fails_on('mssql+pyodbc', 'pyodbc returns a non unicode encoding of the results description.') - @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy unsupported, fixed in 0.9") + @testing.skip_if(lambda: util.pypy, "pypy unsupported, fixed in 0.9") def test_mapping(self): t2, t1 = self.tables.t2, self.tables.t1 @@ -200,7 +200,7 @@ class UnicodeSchemaTest(fixtures.MappedTest): @testing.fails_on('mssql+pyodbc', 'pyodbc returns a non unicode encoding of the results description.') - @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy unsupported, fixed in 0.9") + @testing.skip_if(lambda: util.pypy, "pypy unsupported, fixed in 0.9") def test_inheritance_mapping(self): t2, t1 = self.tables.t2, self.tables.t1 |