changeset 25037:570141fa38f9

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.
author Augie Fackler <augie@google.com>
date Tue, 14 Apr 2015 15:54:13 -0400
parents 61fc2cdbc57c
children 66da89457c47
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: