##// END OF EJS Templates
tests: avoid test environment affecting setup.py...
Arseniy Alekseyev -
r51824:a4ec7a92 stable
parent child Browse files
Show More
@@ -165,6 +165,7 b' def _bytes2sys(p):'
165 return p.decode('utf-8')
165 return p.decode('utf-8')
166
166
167
167
168 original_env = os.environ.copy()
168 osenvironb = getattr(os, 'environb', None)
169 osenvironb = getattr(os, 'environb', None)
169 if osenvironb is None:
170 if osenvironb is None:
170 # Windows lacks os.environb, for instance. A proxy over the real thing
171 # Windows lacks os.environb, for instance. A proxy over the real thing
@@ -3763,7 +3764,7 b' class TestRunner:'
3763 makedirs(self._bindir)
3764 makedirs(self._bindir)
3764
3765
3765 vlog("# Running", cmd.decode("utf-8"))
3766 vlog("# Running", cmd.decode("utf-8"))
3766 if subprocess.call(_bytes2sys(cmd), shell=True) == 0:
3767 if subprocess.call(_bytes2sys(cmd), shell=True, env=original_env) == 0:
3767 if not self.options.verbose:
3768 if not self.options.verbose:
3768 try:
3769 try:
3769 os.remove(installerrs)
3770 os.remove(installerrs)
General Comments 0
You need to be logged in to leave comments. Login now