aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-06-08 11:13:00 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-14 12:30:02 -0700
commit6490b13f2283debf5c166c1ae252bba105470bc5 (patch)
treee9f4badc5a0464f249bed1ca4023ed3caf5b240b /run_unittests.py
parentbc6df45663564b0be1faead61a07f224da1b387f (diff)
downloadmeson-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-xrun_unittests.py1
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',