summaryrefslogtreecommitdiff
path: root/functionaltests/test_validate_errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'functionaltests/test_validate_errors.py')
-rw-r--r--functionaltests/test_validate_errors.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/functionaltests/test_validate_errors.py b/functionaltests/test_validate_errors.py
index ed85ec3..4517817 100644
--- a/functionaltests/test_validate_errors.py
+++ b/functionaltests/test_validate_errors.py
@@ -1,5 +1,9 @@
import os
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
+
from configobj import ConfigObj, get_extra_values
from validate import Validator
@@ -58,7 +62,5 @@ class TestValidateErrors(unittest.TestCase):
])
self.assertEqual(sorted(extra_values), expected)
-
-
if __name__ == '__main__':
unittest.main()