summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/helper_test.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/helper_test.py b/tests/helper_test.py
index 958abf90..2aff842d 100644
--- a/tests/helper_test.py
+++ b/tests/helper_test.py
@@ -417,11 +417,8 @@ class TestCallCmdAsync(unittest.TestCase):
async def test_env_set(self):
with mock.patch.dict(os.environ, {}, clear=True):
ret = await helper.call_cmd_async(
- # Thanks to the future import it doesn't matter if python is
- # python2 or python3
- ['python', '-c', 'from __future__ import print_function; '
- 'import os; '
- 'print(os.environ.get("foo", "fail"), end="")'
+ ['python3', '-c', 'import os; '
+ 'print(os.environ.get("foo", "fail"), end="")'
],
env={'foo': 'bar'})
self.assertEqual(ret[0], 'bar')