File: run_doctest.py

package info (click to toggle)
mpmath 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,300 kB
  • ctags: 2,848
  • sloc: python: 44,051; makefile: 44; sh: 4
file content (15 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python

import os
import os.path
import sys

sys.path.insert(0, '..')

path = "source"

import doctest
for f in os.listdir(path):
    if f.endswith(".txt"):
        print f
        doctest.testfile(os.path.join(path, f), module_relative=False)