﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5178	Missing import sys in django/core/management/commands/test.py ?	michal@…	Adrian Holovaty	"If I run some of my unittests in the fresh 5898 revision, in case of error in my code I together with failure messages this error message:

{{{
Traceback (most recent call last):
  File ""./manage.py"", line 11, in ?
    execute_manager(settings)
  File ""/usr/local/lib/python2.4/site-packages/django/core/management/__init__.py"", line 180, in execute_manager
    utility.execute(argv)
  File ""/usr/local/lib/python2.4/site-packages/django/core/management/__init__.py"", line 124, in execute
    command.execute(*args[1:], **options.__dict__)
  File ""/usr/local/lib/python2.4/site-packages/django/core/management/base.py"", line 33, in execute
    output = self.handle(*args, **options)
  File ""/usr/local/lib/python2.4/site-packages/django/core/management/commands/test.py"", line 27, in handle
    sys.exit(failures)
NameError: global name 'sys' is not defined
}}}"		closed	Testing framework	dev		fixed			Unreviewed	0	0	0	0	0	0
