8000 gh-117142: ctypes: Migrate global vars to module state by neonene · Pull Request #117189 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117142: ctypes: Migrate global vars to module state #117189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 29, 2024
Prev Previous commit
Next Next commit
revert cec5ea2 (unnecessary test here)
  • Loading branch information
neonene committed Mar 25, 2024
commit 2c8974bb260010c284bf9ffa959ece6f49032620
14 changes: 0 additions & 14 deletions Lib/test/test_ctypes/test_refcounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import sys
import unittest
from test import support
from test.support import script_helper


MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
Expand Down Expand Up @@ -110,18 +109,5 @@ def func():
func()


class ModuleIsolationTest(unittest.TestCase):
def test_finalize(self):
# check if gc_decref() succeeds
script = (
"import ctypes;"
"import sys;"
"del sys.modules['_ctypes'];"
"import _ctypes;"
"exit()"
)
script_helper.assert_python_ok("-c", script)


if __name__ == '__main__':
unittest.main()
0