Skip to content

Commit 7149f8c

Browse files
committed
adjust pure_python check for option that PyPy might have _pickle
1 parent 2ab96f9 commit 7149f8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyperformance/data-files/benchmarks/bm_pickle/run_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ def add_cmdline_args(cmd, args):
266266
if options.pure_python:
267267
name += "_pure_python"
268268

269-
if not (options.pure_python or IS_PYPY):
269+
if not (options.pure_python):
270270
# C accelerators are enabled by default on 3.x
271271
import pickle
272-
if not is_accelerated_module(pickle):
272+
if not is_accelerated_module(pickle) and not IS_PYPY:
273273
raise RuntimeError("Missing C accelerators for pickle")
274274
else:
275275
sys.modules['_pickle'] = None

0 commit comments

Comments
 (0)