Skip to content
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import signal
import tempfile
import threading
import time
from base64 import b64encode
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
Expand Down Expand Up @@ -152,6 +153,8 @@ def test_concurrent_builds_never_change_sts_regional_endpoints_env_var(self, moc
def watch():
while building.is_set():
seen.add(os.environ.get("AWS_STS_REGIONAL_ENDPOINTS"))
# A bare spin loop holds the GIL against the builders and can push the test past its timeout.
time.sleep(0.001)

building.set()
watcher = threading.Thread(target=watch)
Expand Down