Ubuntu Pastebin

Paste from sergiusens at Wed, 10 Feb 2016 17:16:27 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/examples_tests/tests.py b/examples_tests/tests.py
index 4378d0e..88afe09 100644
--- a/examples_tests/tests.py
+++ b/examples_tests/tests.py
@@ -23,6 +23,7 @@ import subprocess
 import tempfile
 import time
 
+import fixtures
 import testscenarios
 import testtools
 from testtools import content
@@ -226,7 +227,8 @@ class TestSnapcraftExamples(testscenarios.WithScenarios, testtools.TestCase):
             _wait_for_ssh(
                 cls.testbed_ip, cls.testbed_port, 'ubuntu',
                 timeout=300, sleep=10)
-        os.environ['SNAPCRAFT_SETUP_PROXIES'] = '1'
+        cls.useFixture(
+            fixtures.EnvironmentVariable('SNAPCRAFT_SETUP_PROXIES', '1'))
 
     @classmethod
     def tearDownClass(cls):
Download as text