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 4d88779 commit 8296cd8Copy full SHA for 8296cd8
1 file changed
Lib/test/test_annotationlib.py
@@ -1254,10 +1254,9 @@ def test_user_annotate_forwardref(self):
1254
Format.FORWARDREF,
1255
)
1256
1257
- annotate.assert_has_calls([
1258
- unittest.mock.call(Format.FORWARDREF),
1259
- unittest.mock.call(Format.VALUE_WITH_FAKE_GLOBALS),
1260
- ])
+ # The annotate function itself is not called the second time
+ # A new function built from the code is called instead
+ annotate.assert_called_once_with(Format.FORWARDREF)
1261
1262
def test_user_annotate_string(self):
1263
annotate = self._annotate_mock()
@@ -1274,7 +1273,6 @@ def test_user_annotate_string(self):
1274
1273
])
1275
1276
1277
-
1278
class MetaclassTests(unittest.TestCase):
1279
def test_annotated_meta(self):
1280
class Meta(type):
0 commit comments