From a28dfb4f3b81b4949488e241d0f17a2621b676f7 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Tue, 18 Dec 2018 02:47:59 -0800 Subject: tests: Require python3 in test_env_set Fixes: https://github.com/pazz/alot/issues/1354 Signed-off-by: Jordan Justen --- tests/helper_test.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests') 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') -- cgit v1.2.3