      # 'django.contrib.admin',
      # Uncomment the next line to enable admin documentation:
      # 'django.contrib.admindocs',
      'djangorestframework',
  ]
  
  # OAuth support is optional, so we only test oauth if it's installed.
  try:
      import oauth_provider
  except:
 
</s> remove except:
 </s> add except ImportError: </s> remove     INSTALLED_APPS.append('oauth_provider')
 </s> add     INSTALLED_APPS += ('oauth_provider',) </s> remove except:
 </s> add except ImportError: </s> remove INSTALLED_APPS = [
 </s> add INSTALLED_APPS = (
)
      # 'django.contrib.admin',
      # Uncomment the next line to enable admin documentation:
      # 'django.contrib.admindocs',
      'djangorestframework',
)
  
  # OAuth support is optional, so we only test oauth if it's installed.
  try:
      import oauth_provider
  except:
keep keep keep keep replace keep keep keep keep keep
 Tidy up oauth imports slightly 
djangorestframework/runtests/settings.py