diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-30 18:46:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 18:46:37 (GMT) |
commit | 080f5b98d1eac67abc13fe9654ff8a3feeef55ea (patch) | |
tree | a0117269b8a438123c13d868a12194709b292c22 /Lib/test/test_support.py | |
parent | cb1f49991e86d773f6d36a49b81be12abf811057 (diff) | |
download | cpython-080f5b98d1eac67abc13fe9654ff8a3feeef55ea.zip cpython-080f5b98d1eac67abc13fe9654ff8a3feeef55ea.tar.gz cpython-080f5b98d1eac67abc13fe9654ff8a3feeef55ea.tar.bz2 |
[3.11] gh-109748: Fix again venv test_zippath_from_non_installed_posix() (GH-110149) (#110153)
gh-109748: Fix again venv test_zippath_from_non_installed_posix() (GH-110149)
Call also copy_python_src_ignore() on listdir() names.
shutil.copytree(): replace set() with an empty tuple. An empty tuple
becomes a constant in the compiler and checking if an item is in an
empty tuple is cheap.
(cherry picked from commit 0def8c712bb6f66f1081cab71deb3681566b846d)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 2efdbd2..01ba88c 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -818,7 +818,7 @@ class TestSupport(unittest.TestCase): self.assertEqual(support.copy_python_src_ignore(path, os.listdir(path)), ignored | {'build', 'venv'}) - # An other directory + # Another directory path = os.path.join(src_dir, 'Objects') self.assertEqual(support.copy_python_src_ignore(path, os.listdir(path)), ignored) |