diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2010-10-10 00:41:25 +0200 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2010-10-10 00:41:25 +0200 |
| commit | 98a562c9c7391b1fbf601a032d360e8710dcd3db (patch) | |
| tree | fa865daed43f137e1b1ba0982a1acdd100a98f58 | |
| parent | 2ef6f224ac874c3c2982c32af56aca812d75b84f (diff) | |
updated runtests to run only when called
| -rw-r--r-- | runtests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py index c5b22e1..23204e8 100644 --- a/runtests.py +++ b/runtests.py @@ -9,5 +9,6 @@ def createSuite(): suite.addTests(unittest.TestLoader().loadTestsFromTestCase(SensorsTest)) return suite -suite = createSuite() -unittest.TextTestRunner(verbosity=2).run(suite) +if __name__ == '__main__': + suite = createSuite() + unittest.TextTestRunner(verbosity=2).run(suite) |
