mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +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:
@@ -17,10 +17,8 @@ class HandlerTests(unittest.TestCase):
|
||||
# Try running the handler, it will fail in load_middleware
|
||||
handler = WSGIHandler()
|
||||
self.assertEqual(handler.initLock.locked(), False)
|
||||
try:
|
||||
with self.assertRaises(Exception):
|
||||
handler(None, None)
|
||||
except:
|
||||
pass
|
||||
self.assertEqual(handler.initLock.locked(), False)
|
||||
# Reset settings
|
||||
settings.MIDDLEWARE_CLASSES = old_middleware_classes
|
||||
|
||||
Reference in New Issue
Block a user