Skip to content

gh-133677: Skip test in test_httpservers if not utf-8 - #133706

Closed
StanFromIreland wants to merge 5 commits into
python:mainfrom
StanFromIreland:httpservers_test
Closed

gh-133677: Skip test in test_httpservers if not utf-8#133706
StanFromIreland wants to merge 5 commits into
python:mainfrom
StanFromIreland:httpservers_test

Conversation

@StanFromIreland

@StanFromIrelandStanFromIreland commented May 8, 2025

Copy link
Copy Markdown
Member

@bedevere-appbedevere-appBot added the tests Tests in the Lib/test dir label May 8, 2025
@StanFromIreland

Copy link
Copy Markdown
MemberAuthor

Calling the raspbian buildbots would verify this is solved.

@sharktide

sharktide commented May 8, 2025

Copy link
Copy Markdown
Contributor

@StanFromIreland Is it okay if I handle the zipfile test fail? I worked alot with the zipfile lib

@ZeroIntensity

Copy link
Copy Markdown
Member

!buildbot raspbian

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @ZeroIntensity for commit e45a58d 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133706%2Fmerge

The command will test the builders whose names match following regular expression: raspbian

The builders matched are:

  • ARM64 Raspbian PR
  • ARM Raspbian PR

@StanFromIreland

Copy link
Copy Markdown
MemberAuthor

Test passes on buildbot.

Comment threadLib/test/test_httpservers.py Outdated
@StanFromIreland
StanFromIreland requested a review from zwareMay 9, 2025 15:19
Comment threadLib/test/test_httpservers.py Outdated
response = self.request(self.base_url + '/?x=123').read()
self.assertRegex(response, rf'listing for {self.base_url}/\?x=123'.encode('latin1'))
# now the bogus encoding
# now the bogus (utf-8) encoding

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment should be reverted as well.

@sharktide

Copy link
Copy Markdown
Contributor

@zware please review #133715 since it directly correlates to this PR

@StanFromIreland
StanFromIreland requested a review from zwareMay 9, 2025 19:43
@serhiy-storchaka

Copy link
Copy Markdown
Member

Sorry, but skipping the test is not a proper fix of this issue. Test failure exposes a bug in http.server.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviewskip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@StanFromIreland@sharktide@ZeroIntensity@bedevere-bot@serhiy-storchaka@zware