File: tests_as_local_build.patch

package info (click to toggle)
h5py 3.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,828 kB
  • sloc: python: 12,212; ansic: 578; makefile: 433; sh: 33
file content (12 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
Index: h5py/h5py/tests/__init__.py
===================================================================
--- h5py.orig/h5py/tests/__init__.py	2025-10-27 21:25:39.760300764 +0100
+++ h5py/h5py/tests/__init__.py	2025-10-27 21:26:34.560692655 +0100
@@ -16,6 +16,6 @@
         print("Tests require pytest, pytest not installed")
         return 1
 
-    cli = [sys.executable, "-m", "pytest", "--pyargs", "h5py"]
+    cli = [sys.executable, "-m", "pytest", "--pyargs", __name__.replace('.tests','')]
     cli.extend(shlex.split(args))
     return call(cli)