mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-05-15 18:53:20 +00:00
Clarify where assertRaisesRegexp comes from
This commit is contained in:
parent
da5f722424
commit
264f984421
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class SettingDeletedTestCase(TestCase):
|
|||
"""
|
||||
Make sure using get_required_setting fails in the right place.
|
||||
"""
|
||||
# only available with python >= 2.7 or Django >= 1.3
|
||||
# only available in python >= 2.7
|
||||
if hasattr(self, 'assertRaisesRegexp'):
|
||||
with self.assertRaisesRegexp(AnalyticalException, "^USER_ID setting: not found$"):
|
||||
user_id = get_required_setting("USER_ID", "\d+", "invalid USER_ID")
|
||||
|
|
|
|||
Loading…
Reference in a new issue