From 510c2e15c5b55a48f15f0ba680c5e82a2db5456f Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Thu, 20 Sep 2018 16:04:49 +0300 Subject: Python: adjusted input.read(size) argument value interpretation. Previously, passing 0 resulted in reading the whole body and all negative values raised an exception. Now the behaviour is in consistentance with io.RawIOBase.read() interface, and passing 0 returns empty (byte) string, while -1 results in reading the whole body. --- test/test_python_application.py | 1 - 1 file changed, 1 deletion(-) (limited to 'test/test_python_application.py') diff --git a/test/test_python_application.py b/test/test_python_application.py index 146223ec..f1e2cbf7 100644 --- a/test/test_python_application.py +++ b/test/test_python_application.py @@ -243,7 +243,6 @@ Connection: close self.assertEqual(self.post(body=body)['body'], body, 'input iter') - @unittest.expectedFailure def test_python_application_input_read_length(self): self.load('input_read_length') -- cgit