Code

Opened 7 years ago

Closed 7 years ago

#5178 closed (fixed)

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

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

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

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.