Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-109295: Skip test_generated_cases if different mount drives#109308
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
On Windows, skip the test if the current working directory and thePython source code directory have different mount drives. It happensif the temporary directory is on a different mount drive than thePython source code.
7f10fe4 to4ad15efCompareExample without the fix: With the fix: |
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry,@vstinner, I could not cleanly backport this to |
Sorry,@vstinner, I could not cleanly backport this to |
Python 3.11 and 3.12 are not affected: |
An alternative would be to change the current working directory while testing test_generated_cases, as done by test_pyexpat:#109233 But the problem is that the directory should be changed early when test_generated_cases.py is imported, before the first Tools/cases_generator/ import, and the old directory should be restore "later". But when is "later"? After the import? And then change again cwd while running tests using setUpModule()/tearDownModule()? Well, for me it was too complicated, and I made the minimum fix: just skip the test. |
…ython#109308)On Windows, skip the test if the current working directory and thePython source code directory have different mount drives. It happensif the temporary directory is on a different mount drive than thePython source code.
Uh oh!
There was an error while loading.Please reload this page.
On Windows, skip the test if the current working directory and the Python source code directory have different mount drives. It happens if the temporary directory is on a different mount drive than the Python source code.