summaryrefslogtreecommitdiff
path: root/Lib/test/test_hash.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_hash.py')
-rw-r--r--Lib/test/test_hash.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py
index 18ec04eecf..d2571d0acd 100644
--- a/Lib/test/test_hash.py
+++ b/Lib/test/test_hash.py
@@ -105,11 +105,11 @@ class HashInheritanceTestCase(unittest.TestCase):
objects = (self.default_expected +
self.fixed_expected)
for obj in objects:
- self.assertTrue(isinstance(obj, Hashable), repr(obj))
+ self.assertIsInstance(obj, Hashable)
def test_not_hashable(self):
for obj in self.error_expected:
- self.assertFalse(isinstance(obj, Hashable), repr(obj))
+ self.assertNotIsInstance(obj, Hashable)
# Issue #4701: Check that some builtin types are correctly hashable