mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Refs #27025 -- Fixed tests for the new ModuleNotFoundError in Python 3.6.
http://bugs.python.org/issue15767
This commit is contained in:
parent
43c471e81c
commit
16202863fa
2 changed files with 5 additions and 2 deletions
|
@ -34,6 +34,7 @@ from django.utils.six import PY2, PY3, StringIO
|
|||
|
||||
custom_templates_dir = os.path.join(os.path.dirname(upath(__file__)), 'custom_templates')
|
||||
|
||||
PY36 = sys.version_info >= (3, 6)
|
||||
SYSTEM_CHECK_MSG = 'System check identified no issues'
|
||||
|
||||
|
||||
|
@ -1166,7 +1167,7 @@ class ManageCheck(AdminScriptTestCase):
|
|||
args = ['check']
|
||||
out, err = self.run_manage(args)
|
||||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, 'ImportError')
|
||||
self.assertOutput(err, 'ModuleNotFoundError' if PY36 else 'ImportError')
|
||||
self.assertOutput(err, 'No module named')
|
||||
self.assertOutput(err, 'admin_scriptz')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue