Skip to content

Commit d7280d2

Browse files
committed
Fix tests skip for PYTHON_UOPS_OPTIMIZE
1 parent af72c76 commit d7280d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ def f():
210210
exe = get_first_executor(f)
211211
self.assertIsNone(exe)
212212

213+
214+
@unittest.skipIf(os.getenv("PYTHON_UOPS_OPTIMIZE") == "0", "Needs uop optimizer to run.")
213215
class TestUops(unittest.TestCase):
214216

215217
def test_basic_loop(self):
@@ -570,7 +572,7 @@ def testfunc(n):
570572
self.assertLessEqual(count, 2)
571573

572574

573-
@unittest.skipIf(os.getenv("PYTHONUOPSOPTIMIZE", default=0) == 0, "Needs uop optimizer to run.")
575+
@unittest.skipIf(os.getenv("PYTHON_UOPS_OPTIMIZE") == "0", "Needs uop optimizer to run.")
574576
class TestUopsOptimization(unittest.TestCase):
575577

576578
def _run_with_optimizer(self, testfunc, arg):

0 commit comments

Comments
 (0)