We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd1842c commit 226f2a0Copy full SHA for 226f2a0
1 file changed
Lib/test/test_unittest/testmock/testpatch.py
@@ -23,7 +23,7 @@
23
builtin_string = 'builtins'
24
25
PTModule = sys.modules[__name__]
26
-lazy from json import dumps as lazy_dumps
+lazy from json import dumps as lazy_dumps # noqa: F401
27
MODNAME = '%s.PTModule' % __name__
28
29
@@ -2104,7 +2104,7 @@ def test(_):
2104
2105
def test_patch_autospec_lazy_import(self):
2106
self.assertIn("lazy_dumps", globals())
2107
-
+
2108
with patch(f"{__name__}.lazy_dumps", autospec=True) as mock_dumps:
2109
mock_dumps({})
2110
mock_dumps.assert_called_once_with({})
0 commit comments