Skip to content

Commit

Permalink
Fixed error in tests with duplicate parameter 'self'.
Browse files Browse the repository at this point in the history
TypeError: __init__() got multiple values for argument 'self'
https://travis-ci.org/collective/icalendar/jobs/659260349
  • Loading branch information
mauritsvanrees committed Mar 9, 2020
1 parent 21a2b30 commit c65c6b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/icalendar/tests/hypothesis/test_fuzzing.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ class TestFuzzing(unittest.TestCase):
def test_main(self, lines):
cl = Contentlines()
for key, params, value in lines:
params = Parameters(**params)
try:
params = Parameters(**params)
except TypeError:
# Happens when there is a random parameter 'self'...
continue
cl.append(Contentline.from_parts(key, params, value))
cl.append('')

Expand Down

0 comments on commit c65c6b7

Please sign in to comment.