summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-07-22 20:58:38 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-05 19:25:25 +0100
commit57f5669d23fe17d940887e1e3ce694c7366a6330 (patch)
treebb9fd95da51a5e0a6465217e050fa9f1b7dce2cc /tests/postgres_tests/test_array.py
parent95182a8593f87046999fc50c4f4161843d68273c (diff)
Refs #33865 -- Improved implementation of FakePayload.
FakePayload is a wrapper around io.BytesIO and is expected to masquerade as though it is a file-like object. For that reason it makes sense that it should inherit the correct signatures from io.BytesIO methods. Crucially an implementation of .readline() is added which will be necessary for this to behave more like the expected file-like objects as LimitedStream will be changed to defer to the wrapped stream object rather than rolling its own implementation for improved performance. It should be safe to adjust these signatures because FakePayload is only used internally within test client helpers, is undocumented, and thus private.
Diffstat (limited to 'tests/postgres_tests/test_array.py')
0 files changed, 0 insertions, 0 deletions