From b9d54b321216e4dd50561f83e2ca7f9f2c031db8 Mon Sep 17 00:00:00 2001 From: hakril Date: Sun, 2 Feb 2025 00:20:18 +0100 Subject: [PATCH] Last fix of docstring escape + trying pytest.mark.xfail --- .github/workflows/tests.yml | 2 +- tests/test_remotectypes.py | 2 +- tests/test_scheduled_tasks.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bbd3517..01d07a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -83,7 +83,7 @@ jobs: # Testing - name: Testing - run: py -${{ matrix.python-version}}-${{ matrix.python-bitness-to-test}} -m pytest --junitxml=junit/test-results.xml -s -k "not known_to_fail" -v tests/ + run: py -${{ matrix.python-version}}-${{ matrix.python-bitness-to-test}} -m pytest --junitxml=junit/test-results.xml -s -v tests/ - name: Publish PyTest Results uses: EnricoMi/publish-unit-test-result-action/windows@v2 diff --git a/tests/test_remotectypes.py b/tests/test_remotectypes.py index 12d198c..d703100 100644 --- a/tests/test_remotectypes.py +++ b/tests/test_remotectypes.py @@ -29,7 +29,7 @@ def test_remote_struct_same_bitness(): # This test fails for now. (0.6) # Should I improve remote ctypes to handel this ? -@pytest.mark.known_to_fail +@pytest.mark.xfail def test_remote_long_ptr(): # Bug thatwas in retrieving of NtCreateFile arguments target = windows.current_process diff --git a/tests/test_scheduled_tasks.py b/tests/test_scheduled_tasks.py index 8b02046..4e24dd0 100644 --- a/tests/test_scheduled_tasks.py +++ b/tests/test_scheduled_tasks.py @@ -5,7 +5,7 @@ import os.path import windows import windows.generated_def as gdef -SCHTASKS = "c:\Windows\System32\schtasks.exe" +SCHTASKS = r"c:\Windows\System32\schtasks.exe" task_scheduler = windows.system.task_scheduler @@ -28,9 +28,9 @@ def schtasks_task_exists(taskname): raise SCHEDULED_TASK_PARAMS = [ - {"DIR": "", "NAME": "PFW_TEST1", "PATH": '"c:\windows\system32\notepad.exe"', "ARGS": "PFW_TEST_PARAM.txt"}, + {"DIR": "", "NAME": "PFW_TEST1", "PATH": r'"c:\windows\system32\notepad.exe"', "ARGS": "PFW_TEST_PARAM.txt"}, # Test in subdir - {"DIR": "PFW_TEST_DIR", "NAME": "PFW_TEST1", "PATH": '"c:\windows\system32\notepad.exe"', "ARGS": "PFW_TEST_PARAM.txt"} + {"DIR": "PFW_TEST_DIR", "NAME": "PFW_TEST1", "PATH": r'"c:\windows\system32\notepad.exe"', "ARGS": "PFW_TEST_PARAM.txt"} ]