summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/test_selects.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/orm/inheritance/test_selects.py')
-rw-r--r--test/orm/inheritance/test_selects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/orm/inheritance/test_selects.py b/test/orm/inheritance/test_selects.py
index dab184194..24297dd0e 100644
--- a/test/orm/inheritance/test_selects.py
+++ b/test/orm/inheritance/test_selects.py
@@ -6,6 +6,7 @@ from sqlalchemy.orm import mapper
from sqlalchemy.orm import Session
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
@@ -117,7 +118,7 @@ class JoinFromSelectPersistenceTest(fixtures.MappedTest):
)
mapper(Child, child, inherits=Base, polymorphic_identity="child")
- sess = Session()
+ sess = fixture_session()
# 2. use an id other than "1" here so can't rely on
# the two inserts having the same id