File: run_doctest.py

package info (click to toggle)
mpmath 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,080 kB
  • sloc: python: 41,095; makefile: 42
file content (12 lines) | stat: -rw-r--r-- 222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python

import os
import os.path

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)