https://github.com/python/cpython/commit/e37db23c5b110da1d25bacd4c1db58056e16fc46
commit: e37db23c5b110da1d25bacd4c1db58056e16fc46
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: zware <[email protected]>
date: 2026-08-26T01:34:48Z
summary:

[3.13] Increase the timeout of test_large_content_length_truncated (GH-156398)

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.
(cherry picked from commit 39921ebf7007a7fe3181bbebcf64d4433ec5de7a)

Co-authored-by: Karolina Surma <[email protected]>

files:
M Lib/test/test_httpservers.py

diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 9b2bb82b05db74..2918e51ffadd30 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -1023,7 +1023,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