mirror of
https://github.com/django/django.git
synced 2025-12-23 09:19:27 +00:00
Added cleanup of cache clearing to DjangoFilePrefixesTests.setUp().
Some checks failed
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
Some checks failed
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
This commit is contained in:
parent
5ddb01c760
commit
7528979153
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ from django.utils.deprecation import (
|
|||
class DjangoFilePrefixesTests(SimpleTestCase):
|
||||
def setUp(self):
|
||||
django_file_prefixes.cache_clear()
|
||||
self.addCleanup(django_file_prefixes.cache_clear)
|
||||
|
||||
def test_no_file(self):
|
||||
orig_file = django.__file__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue