Skip to content

Commit fde18ef

Browse files
author
taras
committed
Don't test get_write_buffer_size because it is difficult to predict and it depends on SO_SNDBUF value
1 parent 20aa1bb commit fde18ef

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

tests/test_tcp.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,21 +1224,16 @@ def resume_writing(self):
12241224
t, p = await self.loop.create_connection(Protocol, *addr)
12251225

12261226
t.write(b'q' * 512)
1227-
self.assertEqual(t.get_write_buffer_size(), 512)
1228-
12291227
t.set_write_buffer_limits(low=16385)
1230-
self.assertFalse(paused)
12311228
self.assertEqual(t.get_write_buffer_limits(), (16385, 65540))
12321229

12331230
with self.assertRaisesRegex(ValueError, 'high.*must be >= low'):
12341231
t.set_write_buffer_limits(high=0, low=1)
12351232

12361233
t.set_write_buffer_limits(high=1024, low=128)
1237-
self.assertFalse(paused)
12381234
self.assertEqual(t.get_write_buffer_limits(), (128, 1024))
12391235

12401236
t.set_write_buffer_limits(high=256, low=128)
1241-
self.assertTrue(paused)
12421237
self.assertEqual(t.get_write_buffer_limits(), (128, 256))
12431238

12441239
t.close()

uvloop/handles/stream.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ cdef class UVStream(UVBaseTransport):
375375
# uv_try_write -- less layers of code. The error
376376
# checking logic is copied from libuv.
377377
written = system.write(fd, buf, blen)
378-
379378
while written == -1 and (
380379
errno.errno == errno.EINTR or
381380
(system.PLATFORM_IS_APPLE and

0 commit comments

Comments
 (0)