summaryrefslogtreecommitdiff
path: root/dev-python/distlib/files/distlib-0.3.2-system-pypiserver.py
blob: 386ad05da5781abc63e47c5c181d9e20c575db9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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,