[PATCH 3 of 6] Fix test-doctest.py: Workaround for "import readline" printing invisible escape codes on
Mads Kiilerich
mads at kiilerich.com
Wed Sep 17 19:06:20 UTC 2008
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1221678071 -7200
# Node ID a25ada4f695e0f51840c64d44b1f066cbb0d4a9e
# Parent 333618dac4efe5db2a5ab8e47f4321dec83ef547
Fix test-doctest.py: Workaround for "import readline" printing invisible escape codes on
I don't know what is going on, but it was seen on Fedora 9 and the hack works...
diff -r 333618dac4ef -r a25ada4f695e tests/test-doctest.py
--- a/tests/test-doctest.py Wed Sep 17 20:59:55 2008 +0200
+++ b/tests/test-doctest.py Wed Sep 17 21:01:11 2008 +0200
@@ -1,8 +1,10 @@
+# Workaround for "import readline" printing invisible escape codes on - seen on Fedora 9
+import os
+del os.environ['TERM']
+
import doctest
import mercurial.changelog
-# test doctest from changelog
-
doctest.testmod(mercurial.changelog)
import mercurial.httprepo
More information about the Mercurial-devel
mailing list