mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Address flake8 W605 (invalid escape sequence)
This commit is contained in:
parent
128c535550
commit
2d8cbd25bd
1 changed files with 3 additions and 3 deletions
|
|
@ -30,14 +30,14 @@ class SettingDeletedTestCase(TestCase):
|
|||
# available in python >= 3.2
|
||||
if hasattr(self, 'assertRaisesRegex'):
|
||||
with self.assertRaisesRegex(AnalyticalException, "^USER_ID setting is not set$"):
|
||||
get_required_setting("USER_ID", "\d+", "invalid USER_ID")
|
||||
get_required_setting("USER_ID", r"\d+", "invalid USER_ID")
|
||||
# available in python >= 2.7, deprecated in 3.2
|
||||
elif hasattr(self, 'assertRaisesRegexp'):
|
||||
with self.assertRaisesRegexp(AnalyticalException, "^USER_ID setting is not set$"):
|
||||
get_required_setting("USER_ID", "\d+", "invalid USER_ID")
|
||||
get_required_setting("USER_ID", r"\d+", "invalid USER_ID")
|
||||
else:
|
||||
self.assertRaises(AnalyticalException,
|
||||
get_required_setting, "USER_ID", "\d+", "invalid USER_ID")
|
||||
get_required_setting, "USER_ID", r"\d+", "invalid USER_ID")
|
||||
|
||||
|
||||
class MyUser(AbstractBaseUser):
|
||||
|
|
|
|||
Loading…
Reference in a new issue