mirror of
https://github.com/django/django.git
synced 2025-03-14 03:10:45 +00:00
[1.7.x] 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. 0bfb53866199f366ed140d49938fd185e5898156 from master.
This commit is contained in:
parent
63ccf64079
commit
d9559fe163
@ -305,7 +305,7 @@ class BaseCommand(object):
|
||||
if options.get('no_color'):
|
||||
self.style = no_style()
|
||||
self.stderr = OutputWrapper(options.get('stderr', sys.stderr))
|
||||
os.environ["DJANGO_COLORS"] = "nocolor"
|
||||
os.environ[str("DJANGO_COLORS")] = str("nocolor")
|
||||
else:
|
||||
self.stderr = OutputWrapper(options.get('stderr', sys.stderr), self.style.ERROR)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user