Skip to content

Commit

Permalink
Do not break in mechRepr when using <input type="date">.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Dec 16, 2022
1 parent 6c75473 commit 91c8463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHANGES
5.6.2 (unreleased)
------------------

- Nothing changed yet.
- Do not break in ``mechRepr`` when using ``<input type="date">``.


5.6.1 (2022-01-21)
Expand Down
2 changes: 1 addition & 1 deletion src/zope/testbrowser/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def mechRepr(self):
clname, toStr(ctrl.name), toStr(ctrl.value),
' (%s)' % (', '.join(infos)) if infos else '')

if isinstance(ctrl, webtest.forms.File):
if isinstance(ctrl, (webtest.forms.File, webtest.forms.Field)):
return repr(ctrl) + "<-- unknown"
raise NotImplementedError(str((self, ctrl)))

Expand Down

0 comments on commit 91c8463

Please sign in to comment.