diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-06-08 11:13:00 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-06-14 12:30:02 -0700 |
commit | 6490b13f2283debf5c166c1ae252bba105470bc5 (patch) | |
tree | e9f4badc5a0464f249bed1ca4023ed3caf5b240b /run_unittests.py | |
parent | bc6df45663564b0be1faead61a07f224da1b387f (diff) | |
download | meson-6490b13f2283debf5c166c1ae252bba105470bc5.zip meson-6490b13f2283debf5c166c1ae252bba105470bc5.tar.gz meson-6490b13f2283debf5c166c1ae252bba105470bc5.tar.bz2 |
run_unittests: mock meson global before changing
For safety
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index b2b7367..b43e8f0 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1599,6 +1599,7 @@ class InternalTests(unittest.TestCase): _(None, mock.Mock(), [], {'input': ['a']}) self.assertEqual(str(cm.exception), "testfunc keyword argument \"input\" container should be of even length, but is not") + @mock.patch.dict(mesonbuild.mesonlib.project_meson_versions, {}) def test_typed_kwarg_since(self) -> None: @typed_kwargs( 'testfunc', |