zulip/zerver
Anders Kaseorg d574200423 tests: Consume streaming responses.
Fixes warnings like “ResourceWarning: unclosed file <_io.FileIO
name='/srv/zulip/var/044e5d44-87aa-4c43-abbb-28a144fa6654/test-backend/run_1238680/worker_0/test_uploads/files/thumbnail/2/1e/jmUuDhQC8WlaSRCuc0zQyx7D/img.tif/100x75.webp'
mode='rb' closefd=True>” with warnings enabled.

deque(…, 0) is an efficient way to consume an iterator documented at
https://docs.python.org/3/library/itertools.html#itertools-recipes
under consume.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-19 09:20:56 -07:00
..
actions thumbnail: Move get_image_thumbnail_path and split_thumbnail_path. 2024-07-18 13:50:28 -07:00
data_import rocketchat: Remove unnecessary SHA-1 hashing of direct message groups. 2024-07-17 15:56:00 -07:00
integration_fixtures/nagios
lib tests: Consume streaming responses. 2024-07-19 09:20:56 -07:00
management thumbnail: Move get_image_thumbnail_path and split_thumbnail_path. 2024-07-18 13:50:28 -07:00
migrations models: Switch font size default to non-compact. 2024-07-18 12:37:06 -07:00
models models: Switch font size default to non-compact. 2024-07-18 12:37:06 -07:00
openapi api-docs: Add changes section in construct a narrow article. 2024-07-16 23:40:45 -07:00
tests tests: Consume streaming responses. 2024-07-19 09:20:56 -07:00
tornado ruff: Fix UP035 Import from collections.abc, typing instead. 2024-07-13 22:28:22 -07:00
transaction_tests ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00
views thumbnail: Move get_image_thumbnail_path and split_thumbnail_path. 2024-07-18 13:50:28 -07:00
webhooks integration-docs: Include suggestion for HTTPS hint in Stripe. 2024-07-18 12:28:08 -07:00
worker thumbnail: Move get_image_thumbnail_path and split_thumbnail_path. 2024-07-18 13:50:28 -07:00
__init__.py
apps.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
context_processors.py ruff: Fix UP035 Import from collections.abc, typing instead. 2024-07-13 22:28:22 -07:00
decorator.py ruff: Fix UP035 Import from collections.abc, typing instead. 2024-07-13 22:28:22 -07:00
filters.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
forms.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
logging_handlers.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py ruff: Fix UP035 Import from collections.abc, typing instead. 2024-07-13 22:28:22 -07:00
signals.py ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00