run-tests: introduce a name for os.environb
authorAugie Fackler <augie@google.com>
Tue, 14 Apr 2015 15:54:13 -0400
changeset 25037 570141fa38f9
parent 25036 61fc2cdbc57c
child 25038 66da89457c47
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.
tests/run-tests.py
--- a/tests/run-tests.py	Tue Apr 14 15:52:45 2015 -0400
+++ b/tests/run-tests.py	Tue Apr 14 15:54:13 2015 -0400
@@ -66,6 +66,8 @@
 from xml.dom import minidom
 import unittest
 
+osenvironb = getattr(os, 'environb', os.environ)
+
 try:
     import json
 except ImportError: