From 1ca54abfd72c0961c2f4de765c26b9a2012a3f29 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 3 Nov 2022 09:21:12 +0000 Subject: [PATCH] couple more --- tests/test_compress.py | 2 +- tests/test_django_whitenoise.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_compress.py b/tests/test_compress.py index 27a22451..b483c1df 100644 --- a/tests/test_compress.py +++ b/tests/test_compress.py @@ -86,5 +86,5 @@ def test_compress(): def test_compressed_effectively_no_orig_size(): compressor = Compressor(quiet=True) assert not compressor.is_compressed_effectively( - "test_encoding", "test_path", 0, "test_data" + "test_encoding", "test_path", 0, b"test_data" ) diff --git a/tests/test_django_whitenoise.py b/tests/test_django_whitenoise.py index c811e66b..5b8a36a0 100644 --- a/tests/test_django_whitenoise.py +++ b/tests/test_django_whitenoise.py @@ -128,7 +128,8 @@ def finder_static_files(request): WHITENOISE_INDEX_FILE=True, STATIC_ROOT=None, ): - finders.get_finder.cache_clear() + # django-stubs doesn’t mark get_finder() as @lru_cache + finders.get_finder.cache_clear() # type: ignore [attr-defined] yield files