tests: don't let headers accumulate in mock submission

This commit is contained in:
Frédéric Péters 2019-09-03 11:36:03 +02:00
parent 3628931d68
commit 9a6401409b
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class MockHtmlForm(object):
form = Form(method='post', use_tokens=False, enctype='application/x-www-form-urlencoded')
form.widgets.append(widget)
self.as_html = str(form.render())
response = mechanize._response.test_html_response(self.as_html)
response = mechanize._response.test_html_response(self.as_html, headers=[])
factory = mechanize.Browser()
factory.set_response(response)
self.factory = factory