  
  # OAuth support is optional, so we only test oauth if it's installed.
  try:
      import oauth_provider
  except:
      pass
  else:
      INSTALLED_APPS.append('oauth_provider')
  
  # If we're running on the Jenkins server we want to archive the coverage reports as XML.
 
</s> remove     INSTALLED_APPS.append('oauth_provider')
 </s> add     INSTALLED_APPS += ('oauth_provider',) </s> remove ]
 </s> add ) </s> remove except:
 </s> add except ImportError: </s> remove INSTALLED_APPS = [
 </s> add INSTALLED_APPS = (
except ImportError:
  
  # OAuth support is optional, so we only test oauth if it's installed.
  try:
      import oauth_provider
except ImportError:
      pass
  else:
      INSTALLED_APPS.append('oauth_provider')
  
  # If we're running on the Jenkins server we want to archive the coverage reports as XML.
keep keep keep keep replace keep keep keep keep keep
 Tidy up oauth imports slightly 
djangorestframework/runtests/settings.py