summaryrefslogtreecommitdiff
path: root/tests/check_framework
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check_framework')
-rw-r--r--tests/check_framework/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/check_framework/tests.py b/tests/check_framework/tests.py
index 2128da3dc6..abb4298c65 100644
--- a/tests/check_framework/tests.py
+++ b/tests/check_framework/tests.py
@@ -179,7 +179,8 @@ class CheckCommandTests(SimpleTestCase):
@override_system_checks([simple_system_check, tagged_system_check])
def test_invalid_tag(self):
- with self.assertRaises(CommandError):
+ msg = 'There is no system check with the "missingtag" tag.'
+ with self.assertRaisesMessage(CommandError, msg):
call_command('check', tags=['missingtag'])
@override_system_checks([simple_system_check])