summaryrefslogtreecommitdiff
path: root/test/aaa_profiling
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2021-09-30 17:39:05 -0600
committerMike Bayer <mike_mp@zzzcomputing.com>2021-10-28 20:31:09 -0400
commit6a786297014c7b2a381084299ac3b4aabcf3c318 (patch)
tree89982a5995d4f9c235e04b27ed2dc6577fb889a8 /test/aaa_profiling
parent134d4953a9f3c3871aff1352c1d2c3926c9426c5 (diff)
downloadsqlalchemy-6a786297014c7b2a381084299ac3b4aabcf3c318.tar.gz
Modernize tests - session_query_get
Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com> Change-Id: I92013aad471baf32df1b51b756e86d95449b5cfd
Diffstat (limited to 'test/aaa_profiling')
-rw-r--r--test/aaa_profiling/test_orm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/aaa_profiling/test_orm.py b/test/aaa_profiling/test_orm.py
index e9771fc67..5d081b933 100644
--- a/test/aaa_profiling/test_orm.py
+++ b/test/aaa_profiling/test_orm.py
@@ -88,7 +88,7 @@ class MergeTest(NoCache, fixtures.MappedTest):
sess = fixture_session()
sess2 = fixture_session()
- p1 = sess.query(Parent).get(1)
+ p1 = sess.get(Parent, 1)
p1.children
# down from 185 on this this is a small slice of a usually
@@ -117,7 +117,7 @@ class MergeTest(NoCache, fixtures.MappedTest):
sess = fixture_session()
sess2 = fixture_session()
- p1 = sess.query(Parent).get(1)
+ p1 = sess.get(Parent, 1)
p1.children
# preloading of collection took this down from 1728 to 1192