summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-28 12:49:38 (GMT)
committerGitHub <noreply@github.com>2024-05-28 12:49:38 (GMT)
commit6ffbd934aa3be8c41c066470208ce291bfa7989e (patch)
tree0e22cd1286c169e27703e0722af630152371b349
parent09a85eaa4cec3cbe26fa81e1f95650046e98db10 (diff)
downloadcpython-6ffbd934aa3be8c41c066470208ce291bfa7989e.zip
cpython-6ffbd934aa3be8c41c066470208ce291bfa7989e.tar.gz
cpython-6ffbd934aa3be8c41c066470208ce291bfa7989e.tar.bz2
[3.12] Re-order imports to align with zipp 3.18.2 (GH-119587) (#119590)
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>
-rw-r--r--Lib/test/test_zipfile/_path/test_complexity.py2
-rw-r--r--Lib/test/test_zipfile/_path/test_path.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_zipfile/_path/test_complexity.py b/Lib/test/test_zipfile/_path/test_complexity.py
index 7050937..2286176 100644
--- a/Lib/test/test_zipfile/_path/test_complexity.py
+++ b/Lib/test/test_zipfile/_path/test_complexity.py
@@ -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)
],
diff --git a/Lib/test/test_zipfile/_path/test_path.py b/Lib/test/test_zipfile/_path/test_path.py
index 6760242..06d5aab 100644
--- a/Lib/test/test_zipfile/_path/test_path.py
+++ b/Lib/test/test_zipfile/_path/test_path.py
@@ -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: