aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-09-18 15:17:31 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-11-14 15:57:37 -0800
commit71a5f990d09f04d8eb8d636abf7e2b446fdf826a (patch)
treec9b4b3d5f45df4ff9340c26c35a909aef19bd424 /run_unittests.py
parent091452f8cd886dedc2bc5d3ec292dcf899989a24 (diff)
downloadmeson-71a5f990d09f04d8eb8d636abf7e2b446fdf826a.zip
meson-71a5f990d09f04d8eb8d636abf7e2b446fdf826a.tar.gz
meson-71a5f990d09f04d8eb8d636abf7e2b446fdf826a.tar.bz2
modules/python: Allow use of the native file
Currently this just allows setting a "python" variable that always overrides, probably we want to have the option for "python2" and "python3" as well.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index fc4e82b..05a8457 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -4557,6 +4557,14 @@ class NativeFileTests(BasePlatformTests):
def test_python3_module(self):
self._simple_test('python3', 'python3')
+ def test_python_module(self):
+ if is_windows():
+ # Bat adds extra crap to stdout, so the version check logic in the
+ # python module breaks. This is fine on other OSes because they
+ # don't need the extra indirection.
+ raise unittest.SkipTest('bat indirection breaks internal sanity checks.')
+ self._simple_test('python', 'python')
+
def unset_envs():
# For unit tests we must fully control all command lines