      def _resolve_urlpatterns(self, urlpatterns, test_paths):
          factory = RequestFactory()
          try:
              urlpatterns = format_suffix_patterns(urlpatterns)
          except:
              self.fail("Failed to apply `format_suffix_patterns` on  the supplied urlpatterns")
          resolver = urlresolvers.RegexURLResolver(r'^/', urlpatterns)
          for test_path in test_paths:
              request = factory.get(test_path.path)
              try:
 
</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 KeyError:
        except Exception:
      def _resolve_urlpatterns(self, urlpatterns, test_paths):
          factory = RequestFactory()
          try:
              urlpatterns = format_suffix_patterns(urlpatterns)
        except Exception:
              self.fail("Failed to apply `format_suffix_patterns` on  the supplied urlpatterns")
          resolver = urlresolvers.RegexURLResolver(r'^/', urlpatterns)
          for test_path in test_paths:
              request = factory.get(test_path.path)
              try:
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