(self)
| 276 | @mock.patch("sys.warnoptions", []) |
| 277 | @mock.patch("sys._xoptions", {}) |
| 278 | def test_module_no_spec(self): |
| 279 | module = types.ModuleType("test_module") |
| 280 | del module.__spec__ |
| 281 | with mock.patch.dict(sys.modules, {"__main__": module}): |
| 282 | self.assertEqual( |
| 283 | autoreload.get_child_arguments(), |
| 284 | [sys.executable, __file__, "runserver"], |
| 285 | ) |
| 286 | |
| 287 | |
| 288 | class TestUtilities(SimpleTestCase): |