mirror of
https://github.com/Hopiu/django.git
synced 2026-05-26 15:44:08 +00:00
Refs #33865 -- Corrected signature of ExplodingBytesIO.read().
These subclasses of io.BytesIO should inherit the correct signature.
This commit is contained in:
parent
7a1543d9f6
commit
95182a8593
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue