From e98209c2b446205547e2298b7e6300098cfa578e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 20 May 2015 16:10:04 +0300 Subject: Issue #24245: Eliminated senseless expect clauses that have no any effect. Patch by Martin Panter. --- Lib/unittest/test/support.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Lib/unittest/test/support.py') diff --git a/Lib/unittest/test/support.py b/Lib/unittest/test/support.py index 02e8f3a00b..529265304f 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)) -- cgit v1.2.1