Skip to content

Commit 851f12c

Browse files
pablogsalvstinner
andcommitted
Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 3e7ccf0 commit 851f12c

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy