Skip to content

Commit

Permalink
tests: Require python3 in test_env_set
Browse files Browse the repository at this point in the history
Fixes: #1354
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
  • Loading branch information
jljusten2 authored and pazz committed Dec 19, 2018
1 parent 1e346ca commit a28dfb4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/helper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,8 @@ async def test_stdin(self):
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')
Expand Down

0 comments on commit a28dfb4

Please sign in to comment.