mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #30479 -- Fixed detecting changes in manage.py by autoreloader when using StatReloader.
Regression in c8720e7696
.
This commit is contained in:
parent
df46b329e0
commit
b2790f74d4
3 changed files with 16 additions and 1 deletions
|
@ -132,6 +132,10 @@ class TestIterModulesAndFiles(SimpleTestCase):
|
|||
del module.__spec__
|
||||
self.assertEqual(autoreload.iter_modules_and_files((module,), frozenset()), frozenset())
|
||||
|
||||
def test_main_module_is_resolved(self):
|
||||
main_module = sys.modules['__main__']
|
||||
self.assertFileFound(Path(main_module.__file__))
|
||||
|
||||
|
||||
class TestCommonRoots(SimpleTestCase):
|
||||
def test_common_roots(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue