Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test_executable_missing_post_creation for Python 3.11, PyPy (#459)
* Fix mock in test_executable_missing_post_creation for Python 3.11 As a result of python/cpython#31034, venv now calls sysconfig.get_paths. This messes up the mock call count. The change to using Signature.bind isn't strictly necessary, but fixes the initial symptom (since venv calls sysconfig.get_paths without kwargs). This also means we can use sysconfig.get_paths however we want. * add comment, unskip on pypy3 * mock venv.EnvBuilder.create * remove unused imports Authored-by: hauntsaninja <>
- Loading branch information