Isolate tests from the environment variable http_proxy.
This fixes bug 1078548. This is done by adding a dependency on the fixtures library, which has dedicated code for just this sort of thing, and using it in the base class. Change-Id: I841fbf912b1a3ab43ca8c52c779d930aaf4a0e96
This commit is contained in:
parent
6375ca7eb5
commit
18b9c7f29b
@ -26,6 +26,7 @@ inline callbacks.
|
|||||||
import sys
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
from fixtures import EnvironmentVariable
|
||||||
import mox
|
import mox
|
||||||
import stubout
|
import stubout
|
||||||
import testtools
|
import testtools
|
||||||
@ -82,6 +83,7 @@ class TestCase(testtools.TestCase):
|
|||||||
self.injected = []
|
self.injected = []
|
||||||
self._services = []
|
self._services = []
|
||||||
self._modules = {}
|
self._modules = {}
|
||||||
|
self.useFixture(EnvironmentVariable('http_proxy'))
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""Runs after each test method to tear down test environment."""
|
"""Runs after each test method to tear down test environment."""
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
distribute>=0.6.24
|
distribute>=0.6.24
|
||||||
|
|
||||||
coverage
|
coverage
|
||||||
|
fixtures
|
||||||
mox==0.5.3
|
mox==0.5.3
|
||||||
nose
|
nose
|
||||||
testtools
|
testtools
|
||||||
|
Loading…
Reference in New Issue
Block a user