Skip to content

Commit 24cfb00

Browse files
Test whether if statement is reachable
1 parent e3b78a0 commit 24cfb00

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/test/test_wsgiref.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,7 @@ def testRaisesControlCharacters(self):
857857
headers.add_header("key", "val")
858858
# HTAB (\x09) is allowed in values, but not in names.
859859
if c0 == "\t":
860-
base["key"] = f"val{c0}"
861-
base.start_response(f"key{c0}", headers)
862-
else:
863-
self.assertRaises(ValueError, base.start_response, f"key{c0}", headers)
860+
raise exception
864861

865862

866863
class TestModule(unittest.TestCase):

0 commit comments

Comments
 (0)