tests/OBSLocal: add workaround for obs.py leakage.

This commit is contained in:
Jimmy Berry 2017-10-24 18:00:47 -05:00
parent cdb42bf5a4
commit c5cf186d18

View File

@ -15,6 +15,9 @@ class OBSLocalTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
# TODO #1214: Workaround for tests/obs.py's lack of cleanup.
import httpretty
httpretty.disable()
if os.path.exists(OSCRC):
os.rename(OSCRC, OSCRC + '.orig')
cls.oscrc('Admin')