-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Labels
pr-wantedIt would be great if someone wrote a PR for this!It would be great if someone wrote a PR for this!
Description
Using bytes as input parameter of a unittest will crash due to expansion issues.
e.g.
@parameterized.expand([
("a"*16), #is fine
("a" * 8 + "b" * 8), #is fine
(b"abcd" * 4) #will crash
])
def test_value(self, case):
self.assertTrue(True)
Error message:
ERROR: test_value_2 (__main__.TestVal)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/.local/lib/python3.9/site-packages/parameterized/parameterized.py", line 392, in standalone_func
return func(*(a + p.args), **p.kwargs)
TypeError: test_value() takes 2 positional arguments but 17 were given
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
pr-wantedIt would be great if someone wrote a PR for this!It would be great if someone wrote a PR for this!