summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-30 18:23:26 (GMT)
committerGitHub <noreply@github.com>2023-09-30 18:23:26 (GMT)
commit0def8c712bb6f66f1081cab71deb3681566b846d (patch)
tree0da50e62a5977a0963825cfc70159deb8a367394 /Lib/test/test_support.py
parent74e425ec186dde6bcfb172616fe8f35ccb5a09bb (diff)
downloadcpython-0def8c712bb6f66f1081cab71deb3681566b846d.zip
cpython-0def8c712bb6f66f1081cab71deb3681566b846d.tar.gz
cpython-0def8c712bb6f66f1081cab71deb3681566b846d.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 902bec7..97de816 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -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)