mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[2.2.x] Fixed #30479 -- Fixed detecting changes in manage.py by autoreloader when using StatReloader.
Regression inc8720e7696. Backport ofb2790f74d4from master
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							853586ee2c
						
					
				
				
					commit
					5bf2c87ece
				
			| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user