From 0bfb53866199f366ed140d49938fd185e5898156 Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Thu, 14 Aug 2014 08:16:15 -0300 Subject: [PATCH] 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. --- django/core/management/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management/base.py b/django/core/management/base.py index 059a323165..6e6ec19460 100644 --- a/django/core/management/base.py +++ b/django/core/management/base.py @@ -380,7 +380,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)