fweinberger/align shutdown with spec (#1091)
Co-authored-by: davenpi <davenport.ianc@gmail.com>
This commit is contained in:
parent
9b4c2ddf93
commit
3abefeeeaf
1 changed files with 390 additions and 15 deletions
10
tests/shared/test_win32_utils.py
Normal file
10
tests/shared/test_win32_utils.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"""Windows-specific test utilities."""
|
||||
|
||||
|
||||
def escape_path_for_python(path: str) -> str:
|
||||
"""Escape a file path for use in Python code strings.
|
||||
|
||||
Converts backslashes to forward slashes which work on all platforms
|
||||
and don't need escaping in Python strings.
|
||||
"""
|
||||
return repr(path.replace("\\", "/"))
|
||||
Loading…
Reference in a new issue