From 89587bfe16cc04db84f19f6303e90bc92c5b0836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Mon, 2 Jul 2018 11:41:19 +0200 Subject: [PATCH] more robust test --- examples/tests/test_examples.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/tests/test_examples.py b/examples/tests/test_examples.py index 9f2b622c..3d54eeac 100644 --- a/examples/tests/test_examples.py +++ b/examples/tests/test_examples.py @@ -13,10 +13,9 @@ @pytest.mark.parametrize('pypath', tests) def test_examples(pypath): - py_exe = 'python3' if sys.version_info.major == 3 else 'python' + py_exe = 'python%d.%d' % (sys.version_info.major, sys.version_info.minor) p = subprocess.Popen([py_exe, pypath]) assert p.wait() == 0 # SUCCESS==0 - py_exe = 'python3' if sys.version_info.major == 3 else 'python' p = subprocess.Popen([py_exe, pypath, '--nt', '2']) assert p.wait() == 0 # SUCCESS==0