]> git.pld-linux.org Git - packages/python3-requests.git/blobdiff - python-requests-disable-xdist.patch
Up to 2.28.1 (python2 support is gone)
[packages/python3-requests.git] / python-requests-disable-xdist.patch
index fc4987a9a00107426d5d78949a66a15aa8f9ab30..320036ab486bbca4d3c656083fed08d09d94feb5 100644 (file)
@@ -1,23 +1,25 @@
 --- requests-2.25.1/setup.py.orig      2021-01-24 18:27:39.728966387 +0100
 +++ requests-2.25.1/setup.py   2021-01-24 18:29:53.264909627 +0100
-@@ -16,11 +16,7 @@
+@@ -33,12 +33,7 @@ class PyTest(TestCommand):
  
      def initialize_options(self):
          TestCommand.initialize_options(self)
 -        try:
 -            from multiprocessing import cpu_count
--            self.pytest_args = ['-n', str(cpu_count()), '--boxed']
+-
+-            self.pytest_args = ["-n", str(cpu_count()), "--boxed"]
 -        except (ImportError, NotImplementedError):
--            self.pytest_args = ['-n', '1', '--boxed']
+-            self.pytest_args = ["-n", "1", "--boxed"]
 +        self.pytest_args = []
  
      def finalize_options(self):
          TestCommand.finalize_options(self)
-@@ -52,7 +48,6 @@
-     'pytest-httpbin>=0.0.7',
-     'pytest-cov',
-     'pytest-mock',
--    'pytest-xdist',
-     'PySocks>=1.5.6, !=1.5.7',
-     'pytest>=3'
+@@ -68,7 +63,6 @@ test_requirements = [
+     "pytest-httpbin>=0.0.7",
+     "pytest-cov",
+     "pytest-mock",
+-    "pytest-xdist",
+     "PySocks>=1.5.6, !=1.5.7",
+     "pytest>=3",
  ]
+
This page took 0.112608 seconds and 4 git commands to generate.