Skip to content

Commit 7d251d4

Browse files
pablogsalvstinner
andauthored
Apply suggestions from code review
Co-authored-by: Victor Stinner <[email protected]>
1 parent 0d98c9c commit 7d251d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/test/test_perf_profiler.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@
2424

2525

2626
def is_jit_build():
27-
cflags = sysconfig.get_config_var("PY_CORE_CFLAGS")
28-
if not cflags:
29-
return False
27+
cflags = (sysconfig.get_config_var("PY_CORE_CFLAGS") or '')
3028
return "_Py_JIT" in cflags
3129

3230

3331
if is_jit_build():
34-
raise unittest.SkipTest("Perf support is not available in jit builds")
32+
raise unittest.SkipTest("Perf support is not available in JIT builds")
3533

3634

3735
def supports_trampoline_profiling():

0 commit comments

Comments
 (0)