Skip to content

Fix NdrCString not accepting strings in python3

19da4ad
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

Fix NdrCString not accepting strings in python3 #85

Fix NdrCString not accepting strings in python3
19da4ad
Select commit
Loading
Failed to load commit list.
GitHub Actions / PyTest Results for 3.6-32 failed Oct 15, 2025 in 0s

4 fail, 30 skipped, 486 pass in 5m 15s

520 tests   486 ✅  5m 15s ⏱️
  1 suites   30 💤
  1 files      4 ❌

Results for commit 19da4ad.

Annotations

Check warning on line 0 in test_apisetmap

See this annotation in the file changed.

@github-actions github-actions / PyTest Results for 3.6-32

test_apisetmap_parsing_current_process (test_apisetmap) failed

junit/test-results.xml [took 0s]
Raw output
assert False
 +  where False = all(<generator object verify_apisetmap_parsing.<locals>.<genexpr> at 0x052A52A0>)
def test_apisetmap_parsing_current_process():
>       return verify_apisetmap_parsing(windows.current_process.peb.ApiSetMap)

tests\test_apisetmap.py:43: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

apisetmap_base = 5308416, version = None

    def verify_apisetmap_parsing(apisetmap_base, version=None):
        if version is not None:
            assert windows.current_process.read_dword(apisetmap_base) == version
        apisetmap = get_api_set_map_for_current_process(apisetmap_base)
        apisetmap_dict = apisetmap.resolution_dict
        # import pdb;pdb.set_trace()
        assert apisetmap_dict
        # 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()
>       assert all(any(dll.startswith(pref) for pref in KNOWN_APISETMAP_PREFIX) for dll in apisetmap_dict)
E       assert False
E        +  where False = all(<generator object verify_apisetmap_parsing.<locals>.<genexpr> at 0x052A52A0>)

tests\test_apisetmap.py:35: AssertionError

Check warning on line 0 in test_apisetmap

See this annotation in the file changed.

@github-actions github-actions / PyTest Results for 3.6-32

test_apisetmap_parsing_from_dump[Version6] (test_apisetmap) failed

junit/test-results.xml [took 0s]
Raw output
assert False
 +  where False = all(<generator object verify_apisetmap_parsing.<locals>.<genexpr> at 0x052C1750>)
dumped_apisetmap_base_and_version = (98373584, 6)

    def test_apisetmap_parsing_from_dump(dumped_apisetmap_base_and_version):
>       return verify_apisetmap_parsing(*dumped_apisetmap_base_and_version)

tests\test_apisetmap.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

apisetmap_base = 98373584, version = 6

    def verify_apisetmap_parsing(apisetmap_base, version=None):
        if version is not None:
            assert windows.current_process.read_dword(apisetmap_base) == version
        apisetmap = get_api_set_map_for_current_process(apisetmap_base)
        apisetmap_dict = apisetmap.resolution_dict
        # import pdb;pdb.set_trace()
        assert apisetmap_dict
        # 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()
>       assert all(any(dll.startswith(pref) for pref in KNOWN_APISETMAP_PREFIX) for dll in apisetmap_dict)
E       assert False
E        +  where False = all(<generator object verify_apisetmap_parsing.<locals>.<genexpr> at 0x052C1750>)

tests\test_apisetmap.py:35: AssertionError

Check warning on line 0 in test_apisetmap

See this annotation in the file changed.

@github-actions github-actions / PyTest Results for 3.6-32

test_apisetmap_parsing_from_dump[Version4] (test_apisetmap) failed

junit/test-results.xml [took 0s]
Raw output
assert False
 +  where False = all(<generator object verify_apisetmap_parsing.<locals>.<genexpr> at 0x0513D240>)
dumped_apisetmap_base_and_version = (66924224, 4)

    def test_apisetmap_parsing_from_dump(dumped_apisetmap_base_and_version):
>       return verify_apisetmap_parsing(*dumped_apisetmap_base_and_version)

tests\test_apisetmap.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

apisetmap_base = 66924224, version = 4

    def verify_apisetmap_parsing(apisetmap_base, version=None):
        if version is not None:
            assert windows.current_process.read_dword(apisetmap_base) == version
        apisetmap = get_api_set_map_for_current_process(apisetmap_base)
        apisetmap_dict = apisetmap.resolution_dict
        # import pdb;pdb.set_trace()
        assert apisetmap_dict
        # 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()
>       assert all(any(dll.startswith(pref) for pref in KNOWN_APISETMAP_PREFIX) for dll in apisetmap_dict)
E       assert False
E        +  where False = all(<generator object verify_apisetmap_parsing.<locals>.<genexpr> at 0x0513D240>)

tests\test_apisetmap.py:35: AssertionError

Check warning on line 0 in test_apisetmap

See this annotation in the file changed.

@github-actions github-actions / PyTest Results for 3.6-32

test_apisetmap_parsing_from_dump[Version2] (test_apisetmap) failed

junit/test-results.xml [took 0s]
Raw output
assert False
 +  where False = all(<generator object verify_apisetmap_parsing.<locals>.<genexpr> at 0x05141150>)
dumped_apisetmap_base_and_version = (60951440, 2)

    def test_apisetmap_parsing_from_dump(dumped_apisetmap_base_and_version):
>       return verify_apisetmap_parsing(*dumped_apisetmap_base_and_version)

tests\test_apisetmap.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

apisetmap_base = 60951440, version = 2

    def verify_apisetmap_parsing(apisetmap_base, version=None):
        if version is not None:
            assert windows.current_process.read_dword(apisetmap_base) == version
        apisetmap = get_api_set_map_for_current_process(apisetmap_base)
        apisetmap_dict = apisetmap.resolution_dict
        # import pdb;pdb.set_trace()
        assert apisetmap_dict
        # 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()
>       assert all(any(dll.startswith(pref) for pref in KNOWN_APISETMAP_PREFIX) for dll in apisetmap_dict)
E       assert False
E        +  where False = all(<generator object verify_apisetmap_parsing.<locals>.<genexpr> at 0x05141150>)

tests\test_apisetmap.py:35: AssertionError