Skip to content

Fix test failure on Windows due to path separators being treated as escapes #64721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2023
Merged

Fix test failure on Windows due to path separators being treated as escapes #64721

merged 1 commit into from
Mar 31, 2023

Conversation

tristanlabelle
Copy link
Contributor

The test/ModuleInterface/ModuleCache/module-cache-bad-version.swift test was failing on Windows because it evaluates a Python code string containing a path, which on Windows would have backslashes and be interpreted as escapes. The fix is to use a Python raw string which doesn't process backslash escapes.

@compnerd
Copy link
Member

@swift-ci please test

@compnerd compnerd merged commit deed57c into swiftlang:main Mar 31, 2023
@tristanlabelle tristanlabelle deleted the fix-lit-python-test-failure-backslash branch March 31, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants