summaryrefslogtreecommitdiff
path: root/test/orm/test_unitofwork.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/orm/test_unitofwork.py')
-rw-r--r--test/orm/test_unitofwork.py6
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