Last fix of docstring escape + trying pytest.mark.xfail

This commit is contained in:
hakril
2025-02-02 00:20:18 +01:00
parent 60e3d4a2b2
commit b9d54b3212
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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"}
]