mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed many uses of bare "except:", which were either going to a) silence real issues, or b) were impossible to hit.
This commit is contained in:
@@ -1677,10 +1677,7 @@ class CloneTests(TestCase):
|
||||
list(n_list)
|
||||
# Use the note queryset in a query, and evalute
|
||||
# that query in a way that involves cloning.
|
||||
try:
|
||||
self.assertEqual(ExtraInfo.objects.filter(note__in=n_list)[0].info, 'good')
|
||||
except:
|
||||
self.fail('Query should be clonable')
|
||||
self.assertEqual(ExtraInfo.objects.filter(note__in=n_list)[0].info, 'good')
|
||||
|
||||
|
||||
class EmptyQuerySetTests(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user