mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Last fix of docstring escape + trying pytest.mark.xfail
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"}
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user