tests: fix Mac doctest escape code garbage for check-translations stable 2.8.1
authorMatt Mackall <mpm@selenic.com>
Sun, 01 Dec 2013 20:39:11 -0600
branchstable
changeset 20158 209e04a06467
parent 20157 9d8a9901d4c0
child 20160 824f7b3545c1
child 20161 7414e28be8af
tests: fix Mac doctest escape code garbage for check-translations
i18n/check-translation.py
--- a/i18n/check-translation.py	Sun Dec 01 18:26:42 2013 -0200
+++ b/i18n/check-translation.py	Sun Dec 01 20:39:11 2013 -0600
@@ -122,6 +122,8 @@
     (options, args) = optparser.parse_args()
 
     if options.doctest:
+        if 'TERM' in os.environ:
+            del os.environ['TERM']
         import doctest
         failures, tests = doctest.testmod()
         sys.exit(failures and 1 or 0)