Remove the configure call in UseThenDisconnect

This hopefully avoids us creating secondary connections
This commit is contained in:
Joseph Schorr 2017-07-26 14:14:52 -04:00
parent c8cdd39d04
commit 50c144a7c4

View file

@ -186,11 +186,7 @@ class UseThenDisconnect(object):
self.config_object = config_object
def __enter__(self):
# TODO(jschorr): Remove this stupid hack.
if self.config_object.get('TESTING') is True:
return
configure(self.config_object)
pass
def __exit__(self, typ, value, traceback):
# TODO(jschorr): Remove this stupid hack.