Revision 1a720e84 snf-pithos-app/pithos/api/test/__init__.py
b/snf-pithos-app/pithos/api/test/__init__.py | ||
---|---|---|
59 | 59 |
import django.utils.simplejson as json |
60 | 60 |
|
61 | 61 |
|
62 |
import sys |
|
62 | 63 |
import random |
63 | 64 |
import functools |
64 | 65 |
|
... | ... | |
151 | 152 |
def teardown_databases(self, old_config, **kwargs): |
152 | 153 |
from pithos.api.util import _pithos_backend_pool |
153 | 154 |
_pithos_backend_pool.shutdown() |
154 |
super(PithosTestSuiteRunner, self).teardown_databases(old_config, |
|
155 |
**kwargs) |
|
155 |
try: |
|
156 |
super(PithosTestSuiteRunner, self).teardown_databases(old_config, |
|
157 |
**kwargs) |
|
158 |
except Exception as e: |
|
159 |
sys.stderr.write("FAILED to teardown databases: %s\n" % str(e)) |
|
156 | 160 |
|
157 | 161 |
|
158 | 162 |
class PithosTestClient(Client): |
Also available in: Unified diff