Opened 17 years ago

Closed 17 years ago

#5178 closed (fixed)

Missing import sys in django/core/management/commands/test.py ?

Reported by: michal@… Owned by: Adrian Holovaty
Component: Testing framework Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (1)

comment:1 by Russell Keith-Magee, 17 years ago

Resolution: fixed
Status: newclosed

(In [5900]) Fixed #5178 -- Added missing 'import sys' in management/commands/test.py. Thanks for picking this up, michal@….

Note: See TracTickets for help on using tickets.
Back to Top