summaryrefslogtreecommitdiff
path: root/baserockimport/exts/python_lorry_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'baserockimport/exts/python_lorry_tests.py')
-rwxr-xr-xbaserockimport/exts/python_lorry_tests.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/baserockimport/exts/python_lorry_tests.py b/baserockimport/exts/python_lorry_tests.py
index be4bcac..f57be6d 100755
--- a/baserockimport/exts/python_lorry_tests.py
+++ b/baserockimport/exts/python_lorry_tests.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
-# Copyright (C) 2014 Codethink Limited
+# -*- coding: utf-8 -*-
+#
+# Copyright © 2014,2015 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -14,6 +16,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
import imp
python_lorry = imp.load_source('python_lorry', 'python.to_lorry')
@@ -71,5 +74,4 @@ class Tests(unittest.TestCase):
if __name__ == '__main__':
- suite = unittest.TestLoader().loadTestsFromTestCase(Tests)
- unittest.TextTestRunner(verbosity=2).run(suite)
+ unittest.main(verbosity=2)