]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Re-order imports to align with zipp 3.18.2 (GH-119587) (#119590)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 28 May 2024 12:49:38 +0000 (14:49 +0200)
committerGitHub <noreply@github.com>
Tue, 28 May 2024 12:49:38 +0000 (08:49 -0400)
Re-order imports to align with zipp 3.18.2 (GH-119587)
(cherry picked from commit 5482a939ac18f4cd861d212c759960af8fa2b19d)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Lib/test/test_zipfile/_path/test_complexity.py
Lib/test/test_zipfile/_path/test_path.py

index 7050937738af18f31de4f6158972bd101dd0eb3b..22861761c05967b7ed6c16995c2996f5ed761414 100644 (file)
@@ -20,7 +20,7 @@ class TestComplexity(unittest.TestCase):
     @pytest.mark.flaky
     def test_implied_dirs_performance(self):
         best, others = big_o.big_o(
-            compose(consume, zipfile.CompleteDirs._implied_dirs),
+            compose(consume, zipfile._path.CompleteDirs._implied_dirs),
             lambda size: [
                 '/'.join(string.ascii_lowercase + str(n)) for n in range(size)
             ],
index 67602421f6be38991bcb13f5000e710f29954f36..06d5aab69bd6d46b1c422b4eda8bb5ca8208d8e7 100644 (file)
@@ -7,13 +7,13 @@ import sys
 import unittest
 import zipfile
 
+from test.support.os_helper import temp_dir, FakePath
+
 from ._functools import compose
 from ._itertools import Counter
 
 from ._test_params import parameterize, Invoked
 
-from test.support.os_helper import temp_dir, FakePath
-
 
 class jaraco:
     class itertools: