Skip to content

Commit 71ff855

Browse files
committed
Add SOABI_PLATFORM to test.pythoninfo
Add ALT_SOABI and SOABI_PLATFORM to test.pythoninfo. Add also EXTENSION_SUFFIXES of importlib.machinery.
1 parent b4a6389 commit 71ff855

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lib/test/pythoninfo.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ def collect_sysconfig(info_add):
570570

571571
for name in (
572572
'ABIFLAGS',
573+
'ALT_SOABI',
573574
'ANDROID_API_LEVEL',
574575
'CC',
575576
'CCSHARED',
@@ -595,6 +596,7 @@ def collect_sysconfig(info_add):
595596
'Py_REMOTE_DEBUG',
596597
'SHELL',
597598
'SOABI',
599+
'SOABI_PLATFORM',
598600
'TEST_MODULES',
599601
'VAPTH',
600602
'abs_builddir',
@@ -1316,6 +1318,12 @@ def collect_system(info_add):
13161318
info_add('system.hardware', hardware)
13171319

13181320

1321+
def collect_importlib(info_add):
1322+
import importlib.machinery
1323+
info_add('importlib.extension_suffixes',
1324+
importlib.machinery.EXTENSION_SUFFIXES)
1325+
1326+
13191327
def collect_info(info):
13201328
error = False
13211329
info_add = info.add
@@ -1358,6 +1366,7 @@ def collect_info(info):
13581366
collect_zstd,
13591367
collect_libregrtest_utils,
13601368
collect_system,
1369+
collect_importlib,
13611370

13621371
# Collecting from tests should be last as they have side effects.
13631372
collect_test_socket,

0 commit comments

Comments
 (0)