-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
test_asyncio and test_compileall leak temporary files/directories #109295
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
Labels
tests
Tests in the Lib/test dir
Comments
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 12, 2023
test_asyncio and test_compileall now clean up multiprocessing by calling _cleanup_tests() method: explicitly clean up resources and stop background processes like the resource tracker.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 12, 2023
test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 12, 2023
Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename since self.fname already exists.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 12, 2023
Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case.
Another problem: test_os fails if the
|
vstinner
added a commit
that referenced
this issue
Sep 12, 2023
…ll (#109298) test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 12, 2023
…mpileall (pythonGH-109298) test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker. (cherry picked from commit 09ea4b8) Co-authored-by: Victor Stinner <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 12, 2023
…mpileall (pythonGH-109298) test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker. (cherry picked from commit 09ea4b8) Co-authored-by: Victor Stinner <[email protected]>
vstinner
added a commit
that referenced
this issue
Sep 12, 2023
Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 12, 2023
…nGH-109299) Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case. (cherry picked from commit 7dedfd3) Co-authored-by: Victor Stinner <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 12, 2023
…nGH-109299) Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case. (cherry picked from commit 7dedfd3) Co-authored-by: Victor Stinner <[email protected]>
This was referenced Sep 12, 2023
vstinner
added a commit
that referenced
this issue
Sep 12, 2023
…ompileall (GH-109298) (#109302) gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH-109298) test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker. (cherry picked from commit 09ea4b8) Co-authored-by: Victor Stinner <[email protected]>
Last issue with test_generated_cases:
See PR #109290 for the background. |
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 12, 2023
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.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 12, 2023
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.
vstinner
added a commit
that referenced
this issue
Sep 12, 2023
…09299) (#109303) gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case. (cherry picked from commit 7dedfd3) Co-authored-by: Victor Stinner <[email protected]>
vstinner
added a commit
that referenced
this issue
Sep 12, 2023
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.
Yhg1s
pushed a commit
that referenced
this issue
Sep 12, 2023
…ompileall (GH-109298) (#109301) gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH-109298) test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker. (cherry picked from commit 09ea4b8) Co-authored-by: Victor Stinner <[email protected]>
Yhg1s
pushed a commit
that referenced
this issue
Sep 12, 2023
…09299) (#109304) gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case. (cherry picked from commit 7dedfd3) Co-authored-by: Victor Stinner <[email protected]>
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 13, 2023
…mpileall (python#109298) test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 13, 2023
…n#109299) Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Sep 13, 2023
…ython#109308) 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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using PR #109290 fix, I found that the two following tests leak temporary files/directories.
test_compileall:
test.test_asyncio.test_events:
Linked PRs
The text was updated successfully, but these errors were encountered: