summaryrefslogtreecommitdiff
path: root/test/orm/test_hasparent.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/orm/test_hasparent.py')
-rw-r--r--test/orm/test_hasparent.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/orm/test_hasparent.py b/test/orm/test_hasparent.py
index ffc41fb86..50f577240 100644
--- a/test/orm/test_hasparent.py
+++ b/test/orm/test_hasparent.py
@@ -1,6 +1,5 @@
"""test the current state of the hasparent() flag."""
-
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import testing
@@ -8,10 +7,10 @@ from sqlalchemy.orm import attributes
from sqlalchemy.orm import exc as orm_exc
from sqlalchemy.orm import mapper
from sqlalchemy.orm import relationship
-from sqlalchemy.orm import Session
from sqlalchemy.testing import assert_raises_message
from sqlalchemy.testing import eq_
from sqlalchemy.testing import fixtures
+from sqlalchemy.testing.fixtures import fixture_session
from sqlalchemy.testing.schema import Column
from sqlalchemy.testing.schema import Table
from sqlalchemy.testing.util import gc_collect
@@ -83,7 +82,7 @@ class ParentRemovalTest(fixtures.MappedTest):
def _fixture(self):
User, Address = self.classes.User, self.classes.Address
- s = Session()
+ s = fixture_session()
u1 = User()
a1 = Address()