changeset 20158:209e04a06467 stable 2.8.1

tests: fix Mac doctest escape code garbage for check-translations
author Matt Mackall <mpm@selenic.com>
date Sun, 01 Dec 2013 20:39:11 -0600
parents 9d8a9901d4c0
children 824f7b3545c1 7414e28be8af
files i18n/check-translation.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)