We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
+1 however this can be avoided by an encoding/decoding (e.g., Base64)
Sorry, something went wrong.
Fix #134 - wrap str, bytes, and any non-iterable input
91605aa
Fixed #157
41471f9
Merge pull request #157 from wolever/issue-134-allow-bytes-as-input
e383e1e
No branches or pull requests
Using bytes as input parameter of a unittest will crash due to expansion issues.
e.g.
Error message:
The text was updated successfully, but these errors were encountered: