remove bad extra test assertion inside exception handler

This commit is contained in:
Jeremy McMillan 2019-01-07 21:04:18 -06:00 committed by Pedro Algarvio
parent e1e5d874ba
commit eb605867c6

View File

@ -236,7 +236,8 @@ class NetworkTestCase(TestCase):
self.assertEqual((host, port), assertion_value)
except Exception as e:
log.debug("Exception parsing '%s'", host_port)
self.assertFalse(e)
raise e
for host_port in bad_host_ports:
self.assertRaises(ValueError, network.parse_host_port, host_port)