diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-11-19 10:42:38 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-11-22 12:24:33 -0800 |
commit | 762c504612a15109451c647752227be352e15e62 (patch) | |
tree | c1e324338c1c9cb18b24ffcdcf01e3777b9b00f2 /unittests/internaltests.py | |
parent | ecc47d67a945760c3d5e739581fa984bfea6a840 (diff) | |
download | meson-762c504612a15109451c647752227be352e15e62.zip meson-762c504612a15109451c647752227be352e15e62.tar.gz meson-762c504612a15109451c647752227be352e15e62.tar.bz2 |
typed_kwargs: use | for type unions, not ,
Python uses this syntax now, as does typescript and other languages
Diffstat (limited to 'unittests/internaltests.py')
-rw-r--r-- | unittests/internaltests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/internaltests.py b/unittests/internaltests.py index 86c1890..93affb7 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -1266,7 +1266,7 @@ class InternalTests(unittest.TestCase): with self.assertRaises(InvalidArguments) as cm: _(None, mock.Mock(), [], {'input': {}}) - self.assertEqual(str(cm.exception), "testfunc keyword argument 'input' was of type dict[] but should have been list[str]") + self.assertEqual(str(cm.exception), "testfunc keyword argument 'input' was of type dict[] but should have been array[str]") def test_typed_kwarg_contained_invalid(self) -> None: @typed_kwargs( @@ -1313,7 +1313,7 @@ class InternalTests(unittest.TestCase): with self.assertRaises(MesonException) as cm: _(None, mock.Mock(), [], {'input': ['a']}) - self.assertEqual(str(cm.exception), "testfunc keyword argument 'input' was of type list[str] but should have been list[str] that has even size") + self.assertEqual(str(cm.exception), "testfunc keyword argument 'input' was of type array[str] but should have been array[str] that has even size") @mock.patch.dict(mesonbuild.mesonlib.project_meson_versions, {}) def test_typed_kwarg_since(self) -> None: |