diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 2d9063f4d1..4aef752894 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -610,7 +610,7 @@ class RequestsTests(SimpleTestCase): """ class ExplodingBytesIO(BytesIO): - def read(self, len=0): + def read(self, size=-1, /): raise OSError("kaboom!") payload = b"name=value" @@ -659,7 +659,7 @@ class RequestsTests(SimpleTestCase): """ class ExplodingBytesIO(BytesIO): - def read(self, len=0): + def read(self, size=-1, /): raise OSError("kaboom!") payload = b"x"