1. Frank Murphy
  2. WebTest

Commits

Frank Murphy  committed 5321ae3 Draft

Unicode values are valid environmental variables too!

  • Participants
  • Parent commits 1c66d76
  • Branches default

Comments (0)

Files changed (1)

File webtest/lint.py

View file
         if '.' in key:
             # Extension, we don't care about its type
             continue
-        assert type(environ[key]) is str, (
+        assert isinstance(environ[key], basestring), (
             "Environmental variable %s is not a string: %r (value: %r)"
             % (key, type(environ[key]), environ[key]))