Skip to content

Commit

Permalink
couple more
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Nov 3, 2022
1 parent da15160 commit 1ca54ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
3 changes: 2 additions & 1 deletion tests/test_django_whitenoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 1ca54ab

Please sign in to comment.