diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2016-03-29 15:34:35 +0200 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2016-03-29 15:34:35 +0200 |
commit | 56e9873a9194309c0dcdb1bfa2e7d1bfd5dcff89 (patch) | |
tree | 1ee07454ebce641076c550a4ef95734afe5c4e0b /tests | |
parent | 177939d39942d7367b5bdd7b340b2353a8aef4d2 (diff) | |
download | rsa-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__.py | 13 |
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 |