Skip to content

Commit e8015e3

Browse files
committed
ignore warnings
1 parent 7e831ed commit e8015e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import unittest
66
import gc
77
import os
8+
import warnings
89

910
import _opcode
1011

@@ -2240,7 +2241,9 @@ def testfunc(n):
22402241
a = True
22412242
x = ~a + ~a
22422243

2243-
testfunc(TIER2_THRESHOLD)
2244+
with warnings.catch_warnings():
2245+
warnings.simplefilter("ignore")
2246+
testfunc(TIER2_THRESHOLD)
22442247

22452248
ex = get_first_executor(testfunc)
22462249
self.assertIsNotNone(ex)

0 commit comments

Comments
 (0)