mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #24245: Eliminated senseless expect clauses that have no any effect.
Patch by Martin Panter.
This commit is contained in:
parent
ba9ac5b5c4
commit
e98209c2b4
5 changed files with 0 additions and 14 deletions
|
@ -25,8 +25,6 @@ class TestHashing(object):
|
|||
try:
|
||||
if not hash(obj_1) == hash(obj_2):
|
||||
self.fail("%r and %r do not hash equal" % (obj_1, obj_2))
|
||||
except KeyboardInterrupt:
|
||||
raise
|
||||
except Exception as e:
|
||||
self.fail("Problem hashing %r and %r: %s" % (obj_1, obj_2, e))
|
||||
|
||||
|
@ -35,8 +33,6 @@ class TestHashing(object):
|
|||
if hash(obj_1) == hash(obj_2):
|
||||
self.fail("%s and %s hash equal, but shouldn't" %
|
||||
(obj_1, obj_2))
|
||||
except KeyboardInterrupt:
|
||||
raise
|
||||
except Exception as e:
|
||||
self.fail("Problem hashing %s and %s: %s" % (obj_1, obj_2, e))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue