File use_system_packages.patch of Package failed_python-nptyping

---
 tests/test_wheel.py |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Index: nptyping-2.2.0/tests/test_wheel.py
===================================================================
--- nptyping-2.2.0.orig/tests/test_wheel.py
+++ nptyping-2.2.0/tests/test_wheel.py
@@ -80,12 +80,8 @@ class WheelTest(TestCase):
 
     def test_wheel_is_built_correctly(self):
         with working_dir(_ROOT):
-            subprocess.check_output(f"{sys.executable} -m invoke wheel", shell=True)
             wheel_files = glob(f"dist/*{__version__}*.whl")
-            src_files = glob(f"dist/*{__version__}*.tar.gz")
-
             self.assertEqual(1, len(wheel_files))
-            self.assertEqual(1, len(src_files))
 
         with ZipFile(_ROOT / Path(wheel_files[0]), "r") as zip_:
             files_in_wheel = set(
@@ -98,10 +94,9 @@ class WheelTest(TestCase):
 
     def test_wheel_can_be_installed(self):
         with working_dir(Path(self.temp_dir.name)):
-            venv.create(_VENV_NAME, with_pip=False)
-            # For some reason, with_pip=True fails, so we do it separately.
-            subprocess.check_output(
-                f"{self.py} -m ensurepip --upgrade --default-pip", shell=True
+            venv.create(_VENV_NAME, system_site_packages=True, with_pip=True)
+            print(
+                f"{self.pip} install {_ROOT / 'dist' / _WHEEL_NAME}"
             )
             subprocess.check_output(
                 f"{self.pip} install {_ROOT / 'dist' / _WHEEL_NAME}", shell=True
openSUSE Build Service is sponsored by