diff options
| author | Tim Graham <timograham@gmail.com> | 2016-09-16 12:15:00 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-09-17 15:44:06 -0400 |
| commit | 8119b679eb85cdc0ae3d321e54d06dd0200a1e82 (patch) | |
| tree | b4f4e40a371569a260a39ca310e8e984d8582d74 /tests/admin_scripts | |
| parent | 17677d510f65012531a5af57fd056fb15cfe1067 (diff) | |
| download | django-8119b679eb85cdc0ae3d321e54d06dd0200a1e82.tar.gz | |
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
Diffstat (limited to 'tests/admin_scripts')
| -rw-r--r-- | tests/admin_scripts/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 567a8f14f8..84b44931b3 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -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" |
