diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2009-05-30 04:04:24 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2009-06-01 00:56:52 +0200 |
commit | 8f402e0b6213f69d2dee426afeef2ca34db122ff (patch) | |
tree | 64abdea10aa22bcd18551252a7d539af4868195a | |
parent | 73bec8e039efd4ed63a28a52375bb533eeea3ad9 (diff) |
fix "make test"
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | lib/thandy/tests.py | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -3,7 +3,9 @@ all: python setup.py build test: - export PYTHONPATH=./lib/ && python -m thandy/tests + export PYTHONPATH=./lib/ && python -c "from thandy.tests import \ + run_tests;\ + run_tests()" install: python setup.py install diff --git a/lib/thandy/tests.py b/lib/thandy/tests.py index 1fbc4d6..a46258d 100644 --- a/lib/thandy/tests.py +++ b/lib/thandy/tests.py @@ -142,7 +142,9 @@ def suite(): return suite +def run_tests(): + unittest.TextTestRunner(verbosity=1).run(suite()) if __name__ == '__main__': - - unittest.TextTestRunner(verbosity=1).run(suite()) + run_tests() + |