diff options
author | dirkf <fieldhouse@gmx.net> | 2023-03-19 02:27:46 +0000 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2023-03-19 02:29:00 +0000 |
commit | f35b757c826027ab5263d431bbe363c6403bd66d (patch) | |
tree | 21a0bd187f37f09f41174ebadf59702d591965a4 /test | |
parent | 45495228b7a6728b7e764bbcf1f38490cd3d8697 (diff) |
[utils] Ensure `allow_types` for `variadic()` is a tuple
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index ea2b96ed2..b85d397d0 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1563,6 +1563,7 @@ Line 1 self.assertEqual(variadic(None), (None, )) self.assertEqual(variadic('spam'), ('spam', )) self.assertEqual(variadic('spam', allowed_types=dict), 'spam') + self.assertEqual(variadic('spam', allowed_types=[dict]), 'spam') def test_traverse_obj(self): _TEST_DATA = { |