Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac20e7c

Browse files
committed
Fix accidental compilation in test and use builtin exec() instead in PyPy.
1 parent3404b3f commitac20e7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/run/test_coroutines_pep492.pyx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ try:
6363
from sysimport getrefcount
6464
exceptImportError:
6565
from cpython.ref cimport PyObject, Py_REFCNT
66-
defgetrefcount(obj):
66+
defgetrefcount(obj,_exec=exec):
6767
gc.collect()
6868
# PyPy needs to execute a bytecode to run the finalizers
69-
exec('', {}, {})
69+
_exec('', {}, {})
7070
return Py_REFCNT(obj)
7171

7272

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp