Opened 8 years ago

Closed 8 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

Change History (1)

comment:1 Changed 8 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@….

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