-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST/BUG: fix incorrectly-passing Exception in test_html #30553
New issue
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
Conversation
self._setup_build_doc(), features="html5lib", from_encoding=self.encoding | ||
) | ||
bdoc = self._setup_build_doc() | ||
if isinstance(bdoc, bytes) and self.encoding is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is very strange
so this sometimes returns bytes? and str otherwise?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont know this code particularly well, found this while tracking down except Exception
. AFAICT sometimes bs4 wants bytes
gentle ping. not a blocker, but it is a bugfix so it'd be nice to get it in for the RC |
lgtm. can you rebase just in case. ping on green. |
rebased+green |
thanks |
…ion in test_html
…t_html (#31124) Co-authored-by: jbrockmendel <[email protected]>
A
raise
is indented one indent further than it should be. Fixing this surfaces a failing test that is fixed by decoding bytes before passing it to bs4.