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 7e831ed commit e8015e3Copy full SHA for e8015e3
1 file changed
Lib/test/test_capi/test_opt.py
@@ -5,6 +5,7 @@
5
import unittest
6
import gc
7
import os
8
+import warnings
9
10
import _opcode
11
@@ -2240,7 +2241,9 @@ def testfunc(n):
2240
2241
a = True
2242
x = ~a + ~a
2243
- testfunc(TIER2_THRESHOLD)
2244
+ with warnings.catch_warnings():
2245
+ warnings.simplefilter("ignore")
2246
+ testfunc(TIER2_THRESHOLD)
2247
2248
ex = get_first_executor(testfunc)
2249
self.assertIsNotNone(ex)
0 commit comments