diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-20 13:10:04 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-20 13:10:04 (GMT) |
commit | e98209c2b446205547e2298b7e6300098cfa578e (patch) | |
tree | a79fc004850e681d3a31b0175ad3568ef1a45f08 /Lib/unittest/test | |
parent | ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23 (diff) | |
download | cpython-e98209c2b446205547e2298b7e6300098cfa578e.zip cpython-e98209c2b446205547e2298b7e6300098cfa578e.tar.gz cpython-e98209c2b446205547e2298b7e6300098cfa578e.tar.bz2 |
Issue #24245: Eliminated senseless expect clauses that have no any effect.
Patch by Martin Panter.
Diffstat (limited to 'Lib/unittest/test')
-rw-r--r-- | Lib/unittest/test/support.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/unittest/test/support.py b/Lib/unittest/test/support.py index 02e8f3a..5292653 100644 --- a/Lib/unittest/test/support.py +++ b/Lib/unittest/test/support.py @@ -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)) |