Mercurial > hg
comparison tests/run-tests.py @ 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 |
comparison
equal
deleted
inserted
replaced
25036:61fc2cdbc57c | 25037:570141fa38f9 |
---|---|
63 import Queue as queue | 63 import Queue as queue |
64 except ImportError: | 64 except ImportError: |
65 import queue | 65 import queue |
66 from xml.dom import minidom | 66 from xml.dom import minidom |
67 import unittest | 67 import unittest |
68 | |
69 osenvironb = getattr(os, 'environb', os.environ) | |
68 | 70 |
69 try: | 71 try: |
70 import json | 72 import json |
71 except ImportError: | 73 except ImportError: |
72 try: | 74 try: |