summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-01-25 22:12:50 (GMT)
committerGitHub <noreply@github.com>2021-01-25 22:12:50 (GMT)
commit9852cb38112a4f8d11e26c3423643ea994d5a14f (patch)
treed211a0c20d5da15318ce1cc1fa1ab87f544749e3 /Lib/test/test_capi.py
parent501d4a51e32c7bbba255598adc307660b5af891a (diff)
downloadcpython-9852cb38112a4f8d11e26c3423643ea994d5a14f.zip
cpython-9852cb38112a4f8d11e26c3423643ea994d5a14f.tar.gz
cpython-9852cb38112a4f8d11e26c3423643ea994d5a14f.tar.bz2
bpo-42955: Rename module_names to sys.stdlib_module_names (GH-24332)
* Rename _Py_module_names to _Py_stdlib_module_names. * Rename Python/module_names.h to Python/stdlib_module_names.h.
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 5f5c0d0..8e92a50 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -581,7 +581,7 @@ class CAPITest(unittest.TestCase):
not_expected = ('_testcapi',)
code = textwrap.dedent('''
import _testcapi, sys
- sys.module_names = frozenset({"_testcapi"})
+ sys.stdlib_module_names = frozenset({"_testcapi"})
_testcapi.fatal_error(b"MESSAGE")
''')
self.check_fatal_error(code, expected)