summaryrefslogtreecommitdiff
path: root/test/fixtures.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2017-12-07 15:07:31 -0800
committerJeff Widman <jeff@jeffwidman.com>2017-12-07 18:45:42 -0800
commit43511aa7fac950e07376872443db133cbb21530c (patch)
tree50bf55ebe41bb457906cabc575c6c2d12da630e3 /test/fixtures.py
parent009290ddd5d4616d70bff93f841e773af8b22750 (diff)
downloadkafka-python-minor-exception-cleanup.tar.gz
Minor Exception cleanupminor-exception-cleanup
Diffstat (limited to 'test/fixtures.py')
-rw-r--r--test/fixtures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fixtures.py b/test/fixtures.py
index 661a631..b49a160 100644
--- a/test/fixtures.py
+++ b/test/fixtures.py
@@ -162,7 +162,7 @@ class ZookeeperFixture(Fixture):
time.sleep(backoff)
tries += 1
else:
- raise Exception('Failed to start Zookeeper before max_timeout')
+ raise RuntimeError('Failed to start Zookeeper before max_timeout')
self.out("Done!")
atexit.register(self.close)
@@ -302,7 +302,7 @@ class KafkaFixture(Fixture):
time.sleep(backoff)
tries += 1
else:
- raise Exception('Failed to start KafkaInstance before max_timeout')
+ raise RuntimeError('Failed to start KafkaInstance before max_timeout')
self.out("Done!")
self.running = True
atexit.register(self.close)