2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-02-15 00:10:55 +03:00
Files
gentoo/dev-python/distlib/files/distlib-0.3.9-system-pypiserver.patch
Michał Górny 5e3095e3f3 dev-python/distlib: Fix patch suffix
Spotted by arthurzam.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2026-01-02 15:38:47 +01:00

26 lines
1.2 KiB
Diff

diff --git a/tests/test_index.py b/tests/test_index.py
index 95b1f05..984e241 100644
--- a/tests/test_index.py
+++ b/tests/test_index.py
@@ -60,11 +60,6 @@ class PackageIndexTestCase(DistlibTestCase):
def setUpClass(cls):
if cls.run_test_server:
cls.server = None
- server_script = os.path.join(HERE, 'pypi-server-standalone.py')
- if not os.path.exists(server_script):
- logger.debug('test server not available - some tests '
- 'will be skipped.')
- return
pwdfn = os.path.join(HERE, 'passwords')
if not os.path.exists(pwdfn): # pragma: no cover
with open(pwdfn, 'w') as f:
@@ -76,7 +71,7 @@ class PackageIndexTestCase(DistlibTestCase):
os.close(fd)
cls.sink = sink = open(cls.sinkfile, 'w')
cmd = [
- sys.executable, 'pypi-server-standalone.py', '--interface', '127.0.0.1', '--port', TEST_SERVER_PORT,
+ 'pypi-server', '--interface', '127.0.0.1', '--port', TEST_SERVER_PORT,
'-P', 'passwords', 'packages'
]
cls.server = subprocess.Popen(cmd, stdout=sink, stderr=sink, cwd=HERE)