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 8a0152f commit 0f6c12bCopy full SHA for 0f6c12b
Lib/test/test_capi/test_opt.py
@@ -1769,12 +1769,13 @@ def testfunc(n):
1769
1770
def test_call_type_1(self):
1771
def testfunc(n):
1772
+ x = 0
1773
for _ in range(n):
- x = type(42)
1774
+ x += type(42) is int
1775
return x
1776
1777
res, ex = self._run_with_optimizer(testfunc, TIER2_THRESHOLD)
- self.assertEqual(res, int)
1778
+ self.assertEqual(res, TIER2_THRESHOLD)
1779
self.assertIsNotNone(ex)
1780
uops = get_opnames(ex)
1781
self.assertIn("_CALL_TYPE_1", uops)
0 commit comments