Skip to content

Commit

Permalink
more robust test
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Jul 2, 2018
1 parent f406ff7 commit 89587bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/tests/test_examples.py
Expand Up @@ -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

0 comments on commit 89587bf

Please sign in to comment.