diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-29 22:41:11 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-29 22:45:16 +0200 |
commit | 9b464b677f521fff2564dd713a413064d35714d6 (patch) | |
tree | 03bdf36697b20751bc2559053d9153ca29211193 /dev-python/distlib | |
parent | sys-apps/opal-utils: revbump again, fix python deps (diff) | |
download | gentoo-9b464b677f521fff2564dd713a413064d35714d6.tar.gz gentoo-9b464b677f521fff2564dd713a413064d35714d6.tar.bz2 gentoo-9b464b677f521fff2564dd713a413064d35714d6.zip |
dev-python/distlib: Add missing patch
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/distlib')
-rw-r--r-- | dev-python/distlib/files/distlib-0.3.2-system-pypiserver.py | 24 |
1 files changed, 24 insertions, 0 deletions
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 000000000000..386ad05da578 --- /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, |