Commit 0bfb5386 authored by Ramiro Morales's avatar Ramiro Morales
Browse files

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.
parent b3660d28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)