Show More
@@ -184,6 +184,10 b' if sys.version_info > (3, 5, 0):' | |||
|
184 | 184 | |
|
185 | 185 | osenvironb = environbytes(os.environ) |
|
186 | 186 | |
|
187 | getcwdb = getattr(os, 'getcwdb') | |
|
188 | if not getcwdb or os.name == 'nt': | |
|
189 | getcwdb = lambda: _bytespath(os.getcwd()) | |
|
190 | ||
|
187 | 191 | elif sys.version_info >= (3, 0, 0): |
|
188 | 192 | print('%s is only supported on Python 3.5+ and 2.7, not %s' % |
|
189 | 193 | (sys.argv[0], '.'.join(str(v) for v in sys.version_info[:3]))) |
@@ -200,6 +204,7 b' else:' | |||
|
200 | 204 | |
|
201 | 205 | _strpath = _bytespath |
|
202 | 206 | osenvironb = os.environ |
|
207 | getcwdb = os.getcwd | |
|
203 | 208 | |
|
204 | 209 | # For Windows support |
|
205 | 210 | wifexited = getattr(os, "WIFEXITED", lambda x: False) |
@@ -2519,8 +2524,7 b' class TestRunner(object):' | |||
|
2519 | 2524 | os.umask(oldmask) |
|
2520 | 2525 | |
|
2521 | 2526 | def _run(self, testdescs): |
|
2522 |
self._testdir = osenvironb[b'TESTDIR'] = get |
|
|
2523 | os, 'getcwdb', os.getcwd)() | |
|
2527 | self._testdir = osenvironb[b'TESTDIR'] = getcwdb() | |
|
2524 | 2528 | # assume all tests in same folder for now |
|
2525 | 2529 | if testdescs: |
|
2526 | 2530 | pathname = os.path.dirname(testdescs[0]['path']) |
General Comments 0
You need to be logged in to leave comments.
Login now