Mercurial > hg
diff tests/run-tests.py @ 29282:89822d7a9d5f
run-tests: add support for RTUNICODEPEDANTRY environment variable
based on 73e4a02e6d23
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 05 Apr 2016 01:35:58 +0000 |
parents | 8dbfd3befbd7 |
children | 6a98f9408a50 |
line wrap: on
line diff
--- a/tests/run-tests.py Fri May 27 05:24:45 2016 +0000 +++ b/tests/run-tests.py Tue Apr 05 01:35:58 2016 +0000 @@ -69,6 +69,13 @@ from xml.dom import minidom import unittest +if os.environ.get('RTUNICODEPEDANTRY', False): + try: + reload(sys) + sys.setdefaultencoding("undefined") + except NameError: + pass + osenvironb = getattr(os, 'environb', os.environ) processlock = threading.Lock()