diff options
Diffstat (limited to 'dev-python/dugong/files/3.2-timeout.patch')
-rw-r--r-- | dev-python/dugong/files/3.2-timeout.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-python/dugong/files/3.2-timeout.patch b/dev-python/dugong/files/3.2-timeout.patch new file mode 100644 index 00000000000..5ee43f7367c --- /dev/null +++ b/dev-python/dugong/files/3.2-timeout.patch @@ -0,0 +1,19 @@ +https://bitbucket.org/nikratio/python-dugong/issue/14/test_send_timeout-ssl-failure-in-latest +diff --git a/test/test_dugong.py b/test/test_dugong.py +--- a/test/test_dugong.py ++++ b/test/test_dugong.py +@@ -726,11 +728,11 @@ + + # We don't know how much data can be buffered, so we + # claim to send a lot and do so in a loop. +- len_ = 1024**3 ++ len_ = 10 * 1024**3 + conn.send_request('PUT', '/recv_something', body=BodyFollowing(len_)) + with pytest.raises(dugong.ConnectionTimedOut): + while len_ > 0: +- conn.write(b'x' * min(len_, 16*1024)) ++ conn.write(b'x' * min(len_, 640*1024)) + + + DUMMY_DATA = ','.join(str(x) for x in range(10000)).encode() + |