File: tests_as_local_build.patch

package info (click to toggle)
h5py 3.14.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,824 kB
  • sloc: python: 11,425; ansic: 578; makefile: 429; sh: 33
file content (12 lines) | stat: -rw-r--r-- 578 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	2020-11-01 23:17:32.409069108 +0800
+++ h5py/h5py/tests/__init__.py	2020-11-01 23:17:32.405069110 +0800
@@ -18,6 +18,6 @@
         from shlex import split
         from subprocess import call
         from sys import executable
-        cli = [executable, "-m", "pytest", "--pyargs", "h5py"]
+        cli = [executable, "-m", "pytest", "--pyargs", __name__.replace('.tests','')]
         cli.extend(split(args))
         return call(cli)