https://github.com/python/cpython/commit/39921ebf7007a7fe3181bbebcf64d4433ec5de7a
commit: 39921ebf7007a7fe3181bbebcf64d4433ec5de7a
branch: 3.14
author: Karolina Surma <[email protected]>
committer: zware <[email protected]>
date: 2026-08-25T20:04:27-05:00
summary:

[3.14] Increase the timeout of test_large_content_length_truncated (GH-155951)

Increase the timeout of test_large_content_length_truncated

In Fedora, the test started to fail randomly when run on s390x architecture.
Increasing the timeout prevents the issue.

files:
M Lib/test/test_httpservers.py

diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 9ba5494a65221b..aa496b9d455e0e 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -1134,7 +1134,7 @@ def test_large_content_length(self):
             self.assertEqual(res.read(), b'%d %d' % (size, size) + 
self.linesep)
 
     def test_large_content_length_truncated(self):
-        with support.swap_attr(self.request_handler, 'timeout', 0.001):
+        with support.swap_attr(self.request_handler, 'timeout', 
support.LOOPBACK_TIMEOUT):
             for w in range(18, 65):
                 size = 1 << w
                 headers = {'Content-Length' : str(size)}

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to