From: Mike Bayer Date: Sun, 12 Jul 2020 14:48:03 +0000 (-0400) Subject: Correct mock call from 5de0f1cf50 X-Git-Tag: rel_1_4_0b1~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9f9f0feb785ad08a3bbf8b24ce879c985d0975b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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 --- diff --git a/test/orm/test_query.py b/test/orm/test_query.py index 4862542077..93d1e88a5a 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 ),