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]`.
pull/9599/head
Dylan Baker 3 years ago
parent 762c504612
commit d412f0aff5
  1. 2
      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:

Loading…
Cancel
Save