1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

[2.2.x] Fixed #30479 -- Fixed detecting changes in manage.py by autoreloader when using StatReloader.

Regression in c8720e7696.

Backport of b2790f74d4 from master
This commit is contained in:
Tom Forbes
2019-05-27 20:14:49 +01:00
committed by Mariusz Felisiak
parent 853586ee2c
commit 5bf2c87ece
3 changed files with 16 additions and 1 deletions

View File

@@ -130,6 +130,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):