summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2016-03-29 15:34:35 +0200
committerSybren A. Stüvel <sybren@stuvel.eu>2016-03-29 15:34:35 +0200
commit56e9873a9194309c0dcdb1bfa2e7d1bfd5dcff89 (patch)
tree1ee07454ebce641076c550a4ef95734afe5c4e0b /tests
parent177939d39942d7367b5bdd7b340b2353a8aef4d2 (diff)
downloadrsa-git-56e9873a9194309c0dcdb1bfa2e7d1bfd5dcff89.tar.gz
Removed monkey-patch of unittest
This was required for Python 2.6, which we no longer support.
Diffstat (limited to 'tests')
-rw-r--r--tests/__init__.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 85bafc7..e69de29 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,13 +0,0 @@
-import unittest
-import sys
-
-
-if sys.hexversion < 0x2070000:
- # Monkey-patch unittest.TestCase to add assertIsInstance on Python 2.6
-
- def assertIsInstance(self, obj, cls, msg=None):
- """Same as self.assertTrue(isinstance(obj, cls)), with a nicer default message."""
- if not isinstance(obj, cls):
- self.fail('%r is not an instance of %r but is a %r' % (obj, cls, type(obj)))
-
- unittest.TestCase.assertIsInstance = assertIsInstance