Opened 11 years ago

Closed 11 years ago

#5178 closed (fixed)

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

Reported by: michal@… Owned by: Adrian Holovaty
Component: Testing framework Version: master
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


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 11 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(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