File: run_installed_doctests.py

package info (click to toggle)
python-cykhash 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,240 kB
  • sloc: python: 3,954; sh: 90; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import subprocess
import os

import cykhash

dir_name = os.path.dirname(cykhash.__file__)

print("Cykhash installation/doctests search path is:", dir_name) 

args = ["--doctest-glob=*.pyx",
        "--doctest-glob=*.pxi",
        "-vv",
        "--doctest-continue-on-failure",
]
command=["pytest"]+args+[dir_name]


subprocess.run(command)