From 7142a8ddb825d30ee6205557ee65d1b597d424d9 Mon Sep 17 00:00:00 2001 From: hakril Date: Wed, 15 Oct 2025 15:18:34 +0200 Subject: [PATCH] Add new found prefix to apiset map dll name : SchemaExt- --- tests/test_apisetmap.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/test_apisetmap.py b/tests/test_apisetmap.py index c1a6e86..c1528cb 100644 --- a/tests/test_apisetmap.py +++ b/tests/test_apisetmap.py @@ -20,7 +20,7 @@ def dumped_apisetmap_base_and_version(request): ctypes_data = ctypes.c_buffer(data) yield ctypes.addressof(ctypes_data), version -KNOWN_APISETMAP_PREFIX = ["api-", "ext-", "MS-Win-"] +KNOWN_APISETMAP_PREFIX = ["api-", "ext-", "MS-Win-", "SchemaExt-"] def verify_apisetmap_parsing(apisetmap_base, version=None): if version is not None: @@ -32,11 +32,6 @@ def verify_apisetmap_parsing(apisetmap_base, version=None): # Verify that at least one entry resolve to kernel32.dll # This ensure that the ApiSetMap parsing works at least a little assert "kernel32.dll" in apisetmap_dict.values() - print("Listing APISETMAP dlls") - for dll in sorted(apisetmap_dict): - print(dll) - if not any(dll.startswith(pref) for pref in KNOWN_APISETMAP_PREFIX): - print("Dll has unknown prefix".format(dll=dll)) assert all(any(dll.startswith(pref) for pref in KNOWN_APISETMAP_PREFIX) for dll in apisetmap_dict) # This first key was found in most of the tested version by hand # MS-Win found on: 6.1.7600 (Win7)