diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-07-12 10:48:03 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-07-12 10:48:03 -0400 |
commit | f9f9f0feb785ad08a3bbf8b24ce879c985d0975b (patch) | |
tree | c20b00a32fd8c4f8369a766ffa1aff4713340f44 | |
parent | 089a8228faae4f1b3500e8838cff00207ea96c24 (diff) | |
download | sqlalchemy-f9f9f0feb785ad08a3bbf8b24ce879c985d0975b.tar.gz |
Correct mock call from 5de0f1cf50
mock in python 2.7 / 3.8 seems to have an "args" accessor
but in prior python 3 versions this is not the case,
so this is likely a recent addition to "mock" but wasn't
present in the python3 vendored versions.
Change-Id: Iff8afe75e891c9658c7c7b577831fefd5986940b
-rw-r--r-- | test/orm/test_query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/orm/test_query.py b/test/orm/test_query.py index 486254207..93d1e88a5 100644 --- a/test/orm/test_query.py +++ b/test/orm/test_query.py @@ -934,7 +934,7 @@ class GetTest(QueryTest): s.execute(stmt) eq_( - m1.mock_calls[0].args[0].load_options, + m1.mock_calls[0][1][0].load_options, QueryContext.default_load_options( _autoflush=False, _populate_existing=True, _yield_per=10 ), |