aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-11-22 12:25:37 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-11-22 12:27:17 -0800
commitd412f0aff570933903fb2eba7093191138ecf94a (patch)
treed4445c0b73498c2b87f3ad1f306eb943123c4c8b
parent762c504612a15109451c647752227be352e15e62 (diff)
downloadmeson-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.py2
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: