mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
This commit is contained in:
parent
17677d510f
commit
8119b679eb
42 changed files with 82 additions and 82 deletions
|
@ -717,7 +717,7 @@ class ManageNoSettings(AdminScriptTestCase):
|
|||
args = ['check', 'admin_scripts']
|
||||
out, err = self.run_manage(args)
|
||||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, "No module named '?(test_project\.)?settings'?", regex=True)
|
||||
self.assertOutput(err, r"No module named '?(test_project\.)?settings'?", regex=True)
|
||||
|
||||
def test_builtin_with_bad_settings(self):
|
||||
"no settings: manage.py builtin commands fail if settings file (from argument) doesn't exist"
|
||||
|
@ -950,7 +950,7 @@ class ManageAlternateSettings(AdminScriptTestCase):
|
|||
args = ['check', 'admin_scripts']
|
||||
out, err = self.run_manage(args)
|
||||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, "No module named '?(test_project\.)?settings'?", regex=True)
|
||||
self.assertOutput(err, r"No module named '?(test_project\.)?settings'?", regex=True)
|
||||
|
||||
def test_builtin_with_settings(self):
|
||||
"alternate: manage.py builtin commands work with settings provided as argument"
|
||||
|
@ -985,7 +985,7 @@ class ManageAlternateSettings(AdminScriptTestCase):
|
|||
args = ['noargs_command']
|
||||
out, err = self.run_manage(args)
|
||||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, "No module named '?(test_project\.)?settings'?", regex=True)
|
||||
self.assertOutput(err, r"No module named '?(test_project\.)?settings'?", regex=True)
|
||||
|
||||
def test_custom_command_with_settings(self):
|
||||
"alternate: manage.py can execute user commands if settings are provided as argument"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue