mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30479 -- Fixed detecting changes in manage.py by autoreloader when using StatReloader.
Regression in c8720e7696.
This commit is contained in:
committed by
Mariusz Felisiak
parent
df46b329e0
commit
b2790f74d4
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user