diff options
author | matejcik <jmatejek@suse.com> | 2017-03-03 17:35:33 +0100 |
---|---|---|
committer | matejcik <jmatejek@suse.com> | 2017-03-03 17:35:33 +0100 |
commit | d1b9dece3282aea0464c37484be6aab086a7e082 (patch) | |
tree | b9877e8efac147679f1f8ecac4438cab5d792f1e /testing/test_regressions.py | |
parent | 1b2ea950e9f44a7e14a8ce64a921b2739f0145ac (diff) | |
download | setuptools-scm-d1b9dece3282aea0464c37484be6aab086a7e082.tar.gz |
use sys.executable instead of 'python' for running regression tests
Diffstat (limited to 'testing/test_regressions.py')
-rw-r--r-- | testing/test_regressions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/test_regressions.py b/testing/test_regressions.py index 4a067b3..d8c6402 100644 --- a/testing/test_regressions.py +++ b/testing/test_regressions.py @@ -18,16 +18,16 @@ def test_pkginfo_noscmroot(tmpdir, monkeypatch): 'from setuptools import setup;' 'setup(use_scm_version={"root": ".."})') - _, stderr, ret = do_ex('python setup.py --version', p) + _, stderr, ret = do_ex(sys.executable + ' setup.py --version', p) assert 'setuptools-scm was unable to detect version for' in stderr assert ret == 1 p.join("PKG-INFO").write('Version: 1.0') - res = do('python setup.py --version', p) + res = do(sys.executable + ' setup.py --version', p) assert res == '1.0' do('git init', p.dirpath()) - res = do('python setup.py --version', p) + res = do(sys.executable + ' setup.py --version', p) assert res == '1.0' @@ -64,7 +64,7 @@ setup(use_scm_version=vcfg) ''') p.join("PKG-INFO").write('Version: 1.0') - res = do('python setup.py --version', p) + res = do(sys.executable + ' setup.py --version', p) assert res == '1.0' |