summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2018-12-18 02:47:59 -0800
committerPatrick Totzke <patricktotzke@gmail.com>2018-12-19 17:53:20 +0000
commita28dfb4f3b81b4949488e241d0f17a2621b676f7 (patch)
treed26a2300ed03fc1a5a414e74f9b712984452a5ed /tests
parent1e346cac12fdce13a6fe1aec790ebb5ee1c5651e (diff)
tests: Require python3 in test_env_set
Fixes: https://github.com/pazz/alot/issues/1354 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'tests')
-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')