summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Lamar <brian.lamar@rackspace.com>2012-04-13 01:15:14 -0400
committerBrian Lamar <brian.lamar@rackspace.com>2012-04-13 01:23:14 -0400
commitd6d7386fad20fe3165419b3ab2ee51bd90b46e2c (patch)
treec28b46118ee09e143f66f301accacf53ddcbea0b
parentad4a04a64e3a49c5613e766a9f93727cd6b8a678 (diff)
downloadpython-novaclient-d6d7386fad20fe3165419b3ab2ee51bd90b46e2c.tar.gz
Update unittests to be Python 2.6 compatible.
Fixes bug 980504 by introducing unittest2 module into novaclient. Change-Id: I613665eb174598a162795cec737078f960adc4cf
-rw-r--r--tests/utils.py4
-rw-r--r--tools/pip-requires1
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 4f1ca3f1..7f1c5dc7 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -1,5 +1,5 @@
-import unittest
+import unittest2
-class TestCase(unittest.TestCase):
+class TestCase(unittest2.TestCase):
pass
diff --git a/tools/pip-requires b/tools/pip-requires
index 53fb3cb4..510f2c19 100644
--- a/tools/pip-requires
+++ b/tools/pip-requires
@@ -6,3 +6,4 @@ nose
prettytable
simplejson
pep8==0.6.1
+unittest2