Opened 7 years ago

Closed 7 years ago

#5178 closed (fixed)

Missing import sys in django/core/management/commands/ ?

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:


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 "./", line 11, in ?
  File "/usr/local/lib/python2.4/site-packages/django/core/management/", line 180, in execute_manager
  File "/usr/local/lib/python2.4/site-packages/django/core/management/", line 124, in execute
    command.execute(*args[1:], **options.__dict__)
  File "/usr/local/lib/python2.4/site-packages/django/core/management/", line 33, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.4/site-packages/django/core/management/commands/", line 27, in handle
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/ Thanks for picking this up, michal@….

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.