Fixed #23291 -- Don't add Unicode varname/value to environment.

Windows doesn't like that and it causes 114 failures in the
admin_scripts tests with Python 2.x.
This commit is contained in:
Ramiro Morales 2014-08-14 08:16:15 -03:00
parent b3660d28f3
commit 0bfb538661
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ class BaseCommand(object):
if options.get('no_color'): if options.get('no_color'):
self.style = no_style() self.style = no_style()
self.stderr = OutputWrapper(options.get('stderr', sys.stderr)) self.stderr = OutputWrapper(options.get('stderr', sys.stderr))
os.environ["DJANGO_COLORS"] = "nocolor" os.environ[str("DJANGO_COLORS")] = str("nocolor")
else: else:
self.stderr = OutputWrapper(options.get('stderr', sys.stderr), self.style.ERROR) self.stderr = OutputWrapper(options.get('stderr', sys.stderr), self.style.ERROR)