old_contents: #!/usr/bin/env python
  import os
  import sys
  import warnings
  
  warnings.simplefilter('always')
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'password_reset.tests.settings'
  
  from django.test.simple import DjangoTestSuiteRunner
  
  
  def runtests(*test_args):
      test_args = test_args or ['tests']
      parent = os.path.dirname(os.path.abspath(__file__))
      sys.path.insert(0, parent)
  
      runner = DjangoTestSuiteRunner(verbosity=1, interactive=True,
                                     failfast='--failfast' in sys.argv)
      failures = runner.run_tests(test_args)
      sys.exit(failures)
  
  
  if __name__ == '__main__':
      runtests()
  
new_contents: #!/usr/bin/env python
  import os
  import sys
  import warnings
  
  warnings.simplefilter('always')
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'password_reset.tests.settings'
  
  from django.test.simple import DjangoTestSuiteRunner
  
  
  def runtests(*test_args):
      test_args = test_args or ['tests']
      parent = os.path.dirname(os.path.abspath(__file__))
      sys.path.insert(0, parent)
  
      runner = DjangoTestSuiteRunner(verbosity=1, interactive=True,
                                     failfast=bool(os.environ.get('FAILFAST')))
      failures = runner.run_tests(test_args)
      sys.exit(failures)
  
  
  if __name__ == '__main__':
      runtests()
  
subject: Make failfast work again