summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/__init__.py')
-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