commit:     9b464b677f521fff2564dd713a413064d35714d6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 29 20:41:11 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 29 20:45:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b464b67

dev-python/distlib: Add missing patch

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../files/distlib-0.3.2-system-pypiserver.py       | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/dev-python/distlib/files/distlib-0.3.2-system-pypiserver.py 
b/dev-python/distlib/files/distlib-0.3.2-system-pypiserver.py
new file mode 100644
index 00000000000..386ad05da57
--- /dev/null
+++ b/dev-python/distlib/files/distlib-0.3.2-system-pypiserver.py
@@ -0,0 +1,24 @@
+diff -dupr a/tests/test_index.py b/tests/test_index.py
+--- a/tests/test_index.py      2021-05-29 17:42:08.015558305 +0200
++++ b/tests/test_index.py      2021-05-29 17:42:56.949966576 +0200
+@@ -57,11 +57,6 @@ class PackageIndexTestCase(DistlibTestCa
+     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:
+@@ -72,7 +67,7 @@ class PackageIndexTestCase(DistlibTestCa
+             fd, cls.sinkfile = tempfile.mkstemp(suffix='.log', 
prefix='distlib-pypi-')
+             os.close(fd)
+             cls.sink = sink = open(cls.sinkfile, 'w')
+-            cmd = [sys.executable, 'pypi-server-standalone.py',
++            cmd = ['pypi-server',
+                    '--interface', '127.0.0.1', '--port', TEST_SERVER_PORT,
+                    '-P', 'passwords', 'packages']
+             cls.server = subprocess.Popen(cmd, stdout=sink, stderr=sink,

Reply via email to