summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testlib.py b/testlib.py
index 27326b8..cbfd9d4 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1187,6 +1187,9 @@ succeeded test into", osp.join(os.getcwd(), FILE_RESTART)
assertItemsEqual = unittest.TestCase.assertCountEqual
else:
assertCountEqual = unittest.TestCase.assertItemsEqual
+ if sys.version_info < (2,7):
+ def assertIsNotNone(self, value, *args, **kwargs):
+ self.assertEqual(None, value, *args, **kwargs)
TestCase.assertItemsEqual = deprecated('assertItemsEqual is deprecated, use assertCountEqual')(
TestCase.assertItemsEqual)