Fixed #30479 -- Fixed detecting changes in manage.py by autoreloader when using StatReloader.

Regression in c8720e7696.
This commit is contained in:
Tom Forbes 2019-05-27 20:14:49 +01:00 committed by Mariusz Felisiak
parent df46b329e0
commit b2790f74d4
3 changed files with 16 additions and 1 deletions

View file

@ -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):