diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-11-22 12:25:37 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-11-22 12:27:17 -0800 |
commit | d412f0aff570933903fb2eba7093191138ecf94a (patch) | |
tree | d4445c0b73498c2b87f3ad1f306eb943123c4c8b | |
parent | 762c504612a15109451c647752227be352e15e62 (diff) | |
download | meson-d412f0aff570933903fb2eba7093191138ecf94a.zip meson-d412f0aff570933903fb2eba7093191138ecf94a.tar.gz meson-d412f0aff570933903fb2eba7093191138ecf94a.tar.bz2 |
unittests: cover cases here two of the same wrong type are provided
We don't want to get something like "expected array[str], but got
array[int | int]", we really want `arrayp[int]`.
-rw-r--r-- | unittests/internaltests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/internaltests.py b/unittests/internaltests.py index 93affb7..31271b7 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -1277,7 +1277,7 @@ class InternalTests(unittest.TestCase): self.assertTrue(False) # should be unreachable with self.assertRaises(InvalidArguments) as cm: - _(None, mock.Mock(), [], {'input': {'key': 1}}) + _(None, mock.Mock(), [], {'input': {'key': 1, 'bar': 2}}) self.assertEqual(str(cm.exception), "testfunc keyword argument 'input' was of type dict[int] but should have been dict[str]") def test_typed_kwarg_container_listify(self) -> None: |