summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_models.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-09-16 12:15:00 -0400
committerTim Graham <timograham@gmail.com>2016-09-17 15:44:06 -0400
commit8119b679eb85cdc0ae3d321e54d06dd0200a1e82 (patch)
treeb4f4e40a371569a260a39ca310e8e984d8582d74 /tests/auth_tests/test_models.py
parent17677d510f65012531a5af57fd056fb15cfe1067 (diff)
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
Diffstat (limited to 'tests/auth_tests/test_models.py')
-rw-r--r--tests/auth_tests/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auth_tests/test_models.py b/tests/auth_tests/test_models.py
index 5f66a48141..a92f882de0 100644
--- a/tests/auth_tests/test_models.py
+++ b/tests/auth_tests/test_models.py
@@ -117,8 +117,8 @@ class UserManagerTestCase(TestCase):
self.assertEqual(returned, 'normal@domain.com')
def test_create_user_email_domain_normalize_with_whitespace(self):
- returned = UserManager.normalize_email('email\ with_whitespace@D.COM')
- self.assertEqual(returned, 'email\ with_whitespace@d.com')
+ returned = UserManager.normalize_email(r'email\ with_whitespace@D.COM')
+ self.assertEqual(returned, r'email\ with_whitespace@d.com')
def test_empty_username(self):
with self.assertRaisesMessage(ValueError, 'The given username must be set'):