run-tests: introduce a name for os.environb

On python 2 this is just os.environ, but on python 3 we need to get to
os.environb in several places.
This commit is contained in:
Augie Fackler 2015-04-14 15:54:13 -04:00
parent 36659f92fa
commit ebd29548f7

View File

@ -66,6 +66,8 @@ except ImportError:
from xml.dom import minidom
import unittest
osenvironb = getattr(os, 'environb', os.environ)
try:
import json
except ImportError: