File: __init__.py

package info (click to toggle)
python-numarray 1.5.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,668 kB
  • ctags: 11,384
  • sloc: ansic: 113,864; python: 22,422; makefile: 197; sh: 11
file content (29 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import sys
from _image import *
from combine import *


if sys.version_info < (2,4):
    def test():
        import doctest, _image, combine

        t = doctest.Tester(globs = globals())

        t.rundict(_image.__dict__, "_image")
        t.rundict(combine.__dict__, "combine")

        return t.summarize()

else:
    def test():
        import doctest, _image, combine
        
        finder=doctest.DocTestFinder()
        tests=finder.find(_image)
        tests.extend(finder.find(combine))

        runner=doctest.DocTestRunner(verbose=False)
        
        for test in tests:
            runner.run(test)
        return runner.summarize()