mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Avoid dependence on exact Python exception messages
This commit is contained in:
parent
02dda22832
commit
bdcd2f6b10
4 changed files with 7 additions and 6 deletions
|
@ -259,9 +259,8 @@ class ModelTest(TestCase):
|
|||
"datetime.datetime(2005, 7, 28, 0, 0)"])
|
||||
|
||||
# dates() requires valid arguments.
|
||||
six.assertRaisesRegex(self,
|
||||
self.assertRaises(
|
||||
TypeError,
|
||||
"dates\(\) takes at least 3 arguments \(1 given\)",
|
||||
Article.objects.dates,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue