          for test_path in test_paths:
              request = factory.get(test_path.path)
              try:
                  callback, callback_args, callback_kwargs = resolver.resolve(request.path_info)
              except:
                  self.fail("Failed to resolve URL: %s" % request.path_info)
              self.assertEquals(callback_args, test_path.args)
              self.assertEquals(callback_kwargs, test_path.kwargs)
  
      def test_format_suffix(self):
 
</s> remove         except:
 </s> add         except Exception: </s> remove         except:
 </s> add         except NoReverseMatch: </s> remove         except:
 </s> add         except NoReverseMatch: </s> remove         except:
 </s> add         except Exception: </s> remove     except:
 </s> add     except NoReverseMatch:
            except Exception:
          for test_path in test_paths:
              request = factory.get(test_path.path)
              try:
                  callback, callback_args, callback_kwargs = resolver.resolve(request.path_info)
            except Exception:
                  self.fail("Failed to resolve URL: %s" % request.path_info)
              self.assertEquals(callback_args, test_path.args)
              self.assertEquals(callback_kwargs, test_path.kwargs)
  
      def test_format_suffix(self):
keep keep keep keep replace keep keep keep keep keep
 Purge naked excepts.

Most of these had obvious exceptions which would be thrown. Some I'm not
sure about but they should at least catch only Exception so as not to
ignore SystemExit and other inappropriate Error classes. 
rest_framework/tests/urlpatterns.py