mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
gh-109748: Fix again venv test_zippath_from_non_installed_posix() (#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.
This commit is contained in:
parent
74e425ec18
commit
0def8c712b
3 changed files with 7 additions and 3 deletions
|
@ -832,7 +832,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue