From f9f9f0feb785ad08a3bbf8b24ce879c985d0975b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 12 Jul 2020 10:48:03 -0400 Subject: [PATCH] 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 --- test/orm/test_query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ), -- 2.47.3