django/tests/utils_tests/test_module/another_bad_module.py

10 lines
140 B
Python

from . import site
content = 'Another Bad Module'
site._registry.update({
'foo': 'bar',
})
raise Exception('Some random exception.')