from test import support as s
from tests.testv2 import Tester
from tests.test_rst import runt
import sys


def testmod(mod):
    import doctest
    mod = __import__(mod)
    err, test = doctest.testmod(m=mod, verbose=True)
    if err > 0:
        return False
    else:
        return True


def main():
    import os
    first = testmod('NumRep')
    if not first:
        sys.exit(1)
    for mod in os.listdir('NumRep'):
        if mod.startswith('__') or mod.endswith('.pyc'):
            continue
        module = 'NumRep.' + mod.replace('.py', '')
        test = testmod(module)
        if not test:
            sys.exit(1)


if __name__ == '__main__':
    main()
    s.run_unittest(Tester)
    runt('README.rst')
    runt('CHANGELOG.rst')

bc6417aeeb93d6bcbfc8635186a4f348bcbef081
<mask token>


def testmod(mod):
    import doctest
    mod = __import__(mod)
    err, test = doctest.testmod(m=mod, verbose=True)
    if err > 0:
        return False
    else:
        return True


<mask token>

<mask token>


def testmod(mod):
    import doctest
    mod = __import__(mod)
    err, test = doctest.testmod(m=mod, verbose=True)
    if err > 0:
        return False
    else:
        return True


def main():
    import os
    first = testmod('NumRep')
    if not first:
        sys.exit(1)
    for mod in os.listdir('NumRep'):
        if mod.startswith('__') or mod.endswith('.pyc'):
            continue
        module = 'NumRep.' + mod.replace('.py', '')
        test = testmod(module)
        if not test:
            sys.exit(1)


<mask token>

<mask token>


def testmod(mod):
    import doctest
    mod = __import__(mod)
    err, test = doctest.testmod(m=mod, verbose=True)
    if err > 0:
        return False
    else:
        return True


def main():
    import os
    first = testmod('NumRep')
    if not first:
        sys.exit(1)
    for mod in os.listdir('NumRep'):
        if mod.startswith('__') or mod.endswith('.pyc'):
            continue
        module = 'NumRep.' + mod.replace('.py', '')
        test = testmod(module)
        if not test:
            sys.exit(1)


if __name__ == '__main__':
    main()
    s.run_unittest(Tester)
    runt('README.rst')
    runt('CHANGELOG.rst')

from test import support as s
from tests.testv2 import Tester
from tests.test_rst import runt
import sys


def testmod(mod):
    import doctest
    mod = __import__(mod)
    err, test = doctest.testmod(m=mod, verbose=True)
    if err > 0:
        return False
    else:
        return True


def main():
    import os
    first = testmod('NumRep')
    if not first:
        sys.exit(1)
    for mod in os.listdir('NumRep'):
        if mod.startswith('__') or mod.endswith('.pyc'):
            continue
        module = 'NumRep.' + mod.replace('.py', '')
        test = testmod(module)
        if not test:
            sys.exit(1)


if __name__ == '__main__':
    main()
    s.run_unittest(Tester)
    runt('README.rst')
    runt('CHANGELOG.rst')
