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):