Skip to content

Commit 7142a8d

Browse files
committed
Add new found prefix to apiset map dll name : SchemaExt-
1 parent cf09ed8 commit 7142a8d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/test_apisetmap.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def dumped_apisetmap_base_and_version(request):
2020
ctypes_data = ctypes.c_buffer(data)
2121
yield ctypes.addressof(ctypes_data), version
2222

23-
KNOWN_APISETMAP_PREFIX = ["api-", "ext-", "MS-Win-"]
23+
KNOWN_APISETMAP_PREFIX = ["api-", "ext-", "MS-Win-", "SchemaExt-"]
2424

2525
def verify_apisetmap_parsing(apisetmap_base, version=None):
2626
if version is not None:
@@ -32,11 +32,6 @@ def verify_apisetmap_parsing(apisetmap_base, version=None):
3232
# Verify that at least one entry resolve to kernel32.dll
3333
# This ensure that the ApiSetMap parsing works at least a little
3434
assert "kernel32.dll" in apisetmap_dict.values()
35-
print("Listing APISETMAP dlls")
36-
for dll in sorted(apisetmap_dict):
37-
print(dll)
38-
if not any(dll.startswith(pref) for pref in KNOWN_APISETMAP_PREFIX):
39-
print("Dll <dll> has unknown prefix".format(dll=dll))
4035
assert all(any(dll.startswith(pref) for pref in KNOWN_APISETMAP_PREFIX) for dll in apisetmap_dict)
4136
# This first key was found in most of the tested version by hand
4237
# MS-Win found on: 6.1.7600 (Win7)

0 commit comments

Comments
 (0)