Skip to content
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

linkcheck tests: use thread-safe collections.deque for client header recording #11350

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_build_linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import textwrap
import time
import wsgiref.handlers
from collections import deque
from datetime import datetime
from os import path
from queue import Queue
Expand Down Expand Up @@ -199,7 +200,7 @@ def do_GET(self):
(r'.*local.*', ('user2', 'hunter2')),
]})
def test_auth_header_uses_first_match(app):
records = []
records = deque()
with http_server(capture_headers_handler(records)):
app.build()

Expand Down