Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-131178: Add tests for http.server command-line interface#132540

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
picnixz merged 79 commits intopython:mainfromggqlq:main
May 19, 2025
Merged
Changes from1 commit
Commits
Show all changes
79 commits
Select commitHold shift + click to select a range
79db2f2
Add tests for http.server command-line interface
ggqlqApr 14, 2025
a5e5220
Merge branch 'python:main' into main
ggqlqApr 15, 2025
2b589bf
add news
ggqlqApr 15, 2025
e11f8fe
add news
ggqlqApr 15, 2025
4e008fd
lint
ggqlqApr 15, 2025
ad76ab1
move a new class into test
ggqlqApr 16, 2025
5e563d3
Update Lib/http/server.py
ggqlqApr 16, 2025
86b856e
Update Lib/http/server.py
ggqlqApr 16, 2025
4d5c2b5
Update Lib/http/server.py
ggqlqApr 16, 2025
574d6be
Update Lib/http/server.py
ggqlqApr 16, 2025
c1f3358
Update Lib/http/server.py
ggqlqApr 16, 2025
01d5fb8
Update Lib/http/server.py
ggqlqApr 16, 2025
540700f
Update Lib/http/server.py
ggqlqApr 16, 2025
1bdb0ec
Update Lib/test/test_httpservers.py
ggqlqApr 16, 2025
38aea9e
Update Lib/test/test_httpservers.py
ggqlqApr 16, 2025
3277327
update
ggqlqApr 16, 2025
771263d
Update Lib/http/server.py
ggqlqApr 16, 2025
3679a76
remove news
ggqlqApr 16, 2025
6c58710
Update Lib/test/test_httpservers.py
ggqlqApr 17, 2025
3e4a6aa
Update Lib/test/test_httpservers.py
ggqlqApr 17, 2025
8e93c5d
Update Lib/test/test_httpservers.py
ggqlqApr 17, 2025
439c36d
add no argument test and redirect stderr
ggqlqApr 17, 2025
7e8aedc
wrap some lines to fit into 79 characters
ggqlqApr 17, 2025
8f3e7ad
wrap some lines to fit into 79 characters(2)
ggqlqApr 17, 2025
85cb099
Update Lib/test/test_httpservers.py
ggqlqApr 18, 2025
9417864
Update Lib/test/test_httpservers.py
ggqlqApr 18, 2025
a5a7d8c
Update Lib/test/test_httpservers.py
ggqlqApr 18, 2025
a35e0d6
Update Lib/test/test_httpservers.py
ggqlqApr 18, 2025
e2266c0
Update Lib/test/test_httpservers.py
ggqlqApr 18, 2025
b4f9e72
Update Lib/test/test_httpservers.py
ggqlqApr 18, 2025
a61b5b1
Update Lib/test/test_httpservers.py
ggqlqApr 18, 2025
fd70932
update
ggqlqApr 18, 2025
348e256
update
ggqlqApr 19, 2025
4c315b0
update(2)
ggqlqApr 19, 2025
a57b959
add cli test
ggqlqMay 5, 2025
b627e02
add cli test(1)
ggqlqMay 5, 2025
41065c2
add cli test(2)
ggqlqMay 7, 2025
e7b7dff
Merge branch 'main' into main
ggqlqMay 9, 2025
cbda832
move runtime tests into a new class
ggqlqMay 9, 2025
86847e8
update
ggqlqMay 10, 2025
7eb1572
Merge branch 'main' into main
ggqlqMay 10, 2025
d504760
update
ggqlqMay 10, 2025
811d86d
remove test_cli_flag function
ggqlqMay 16, 2025
e5df251
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
1843c80
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
8e8b755
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
2f742d9
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
b5c5ab0
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
05aea06
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
333a761
split stdout and stderr, remove output check after self.assertRaises(…
ggqlqMay 16, 2025
4304354
split tls tests
ggqlqMay 16, 2025
6c4c134
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
7b3bb1d
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
eed4228
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
7c1713e
Update Lib/test/test_httpservers.py
ggqlqMay 16, 2025
a34fa51
Update Lib/test/test_httpservers.py
ggqlqMay 17, 2025
8f73c22
make invoke_httpd function return a pair
ggqlqMay 16, 2025
2daf3f8
rename vars in wait_for_server function
ggqlqMay 17, 2025
1c67654
use call_args = self.args | dict(...)
ggqlqMay 17, 2025
9639219
rename 'random.bin' as 'served_filename'
ggqlqMay 17, 2025
4156e78
fix indentation in test_missing_tls_cert_flag
ggqlqMay 17, 2025
0522a17
add docstring for wait_for_server
ggqlqMay 17, 2025
2c9612b
Merge branch 'main' into main
ggqlqMay 17, 2025
1b5b3f8
capture the output outside invoke_httpd
ggqlqMay 17, 2025
5637928
update terminate processes in test_http_client and test_https_client
ggqlqMay 17, 2025
4a6b779
Merge branch 'main' into main
ggqlqMay 17, 2025
6beb7f1
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
4c25dcd
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
d67ee16
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
d5914dc
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
4d0154e
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
2ba7001
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
0c37216
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
6938dd9
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
59be989
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
7a8d6f1
rename random_... as served_... in the CommandLineRunTimeTestCase class
ggqlqMay 19, 2025
921739c
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
6d9981f
Update Lib/test/test_httpservers.py
ggqlqMay 19, 2025
1d42f2c
Update Lib/test/test_httpservers.py
picnixzMay 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Update Lib/http/server.py
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
  • Loading branch information
@ggqlq@donBarbos
ggqlq anddonBarbos authoredApr 16, 2025
commit01d5fb85de67944fdfedd82ca8f60f30aa332c0c
14 changes: 14 additions & 0 deletionsLib/http/server.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1383,6 +1383,20 @@ def _main(args=None):
else:
handler_class = SimpleHTTPRequestHandler

# ensure dual-stack is not disabled; ref #38907
class DualStackServer(ThreadingHTTPServer):

def server_bind(self):
# suppress exception when protocol is IPv4
with contextlib.suppress(Exception):
self.socket.setsockopt(
socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)
return super().server_bind()

def finish_request(self, request, client_address):
self.RequestHandlerClass(request, client_address, self,
directory=args.directory)

test(
HandlerClass=handler_class,
ServerClass=ThreadingHTTPServer,
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp