From 50c144a7c4bf89804d049487db951f6de8a6b545 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 26 Jul 2017 14:14:52 -0400 Subject: [PATCH] Remove the configure call in UseThenDisconnect This hopefully avoids us creating secondary connections --- data/database.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/data/database.py b/data/database.py index eccbc31f1..1482a4ee1 100644 --- a/data/database.py +++ b/data/database.py @@ -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.