mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed isolation of test_check_errors_catches_all_exceptions.
This commit is contained in:
parent
bef6f75842
commit
e8b4f23115
@ -98,8 +98,11 @@ class TestIterModulesAndFiles(SimpleTestCase):
|
||||
filename = self.temporary_file('test_exception.py')
|
||||
filename.write_text('raise Exception')
|
||||
with extend_sys_path(str(filename.parent)):
|
||||
try:
|
||||
with self.assertRaises(Exception):
|
||||
autoreload.check_errors(import_module)('test_exception')
|
||||
finally:
|
||||
autoreload._exception = None
|
||||
self.assertFileFound(filename)
|
||||
|
||||
def test_zip_reload(self):
|
||||
|
Loading…
Reference in New Issue
Block a user