summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-07-25 12:51:43 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-07-25 12:51:43 +0000
commit020900ac6655ad289d46e01e8198f6956ef783a9 (patch)
treeb419b842716bfd4407001c5b0ac10706077fb2d6 /python/tests
parentb40a7c6a9f28903bf9972bcf1e562e55fc688617 (diff)
downloadlasso-020900ac6655ad289d46e01e8198f6956ef783a9.tar.gz
lasso-020900ac6655ad289d46e01e8198f6956ef783a9.tar.xz
lasso-020900ac6655ad289d46e01e8198f6956ef783a9.zip
login_tests.py can be executed without tests.py
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/login_tests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/tests/login_tests.py b/python/tests/login_tests.py
index 80f0f489..443ddd0e 100644
--- a/python/tests/login_tests.py
+++ b/python/tests/login_tests.py
@@ -27,6 +27,11 @@
import unittest
+import sys
+
+sys.path.insert(0, '..')
+sys.path.insert(0, '../.libs')
+
import lasso
lasso.init()
@@ -194,5 +199,5 @@ suite1 = unittest.makeSuite(LoginTestCase, 'test')
allTests = unittest.TestSuite((suite1,))
if __name__ == '__main__':
- unittest.TextTestRunner(verbosity=2).run(allTests)
+ sys.exit(not unittest.TextTestRunner(verbosity=2).run(allTests).wasSuccessful())