comparison tests/test-doctest.py @ 31518:43d6ef658874

color: insert color code after every "\e[0m" (issue5413) This assumes the last color wins, tested in ANSI mode. I guess terminfo mode would work in the same way.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 18 Mar 2017 20:11:15 +0900
parents a7c687c35119
children ca3b4a2b7e54
comparison
equal deleted inserted replaced
31517:468bc8a1863d 31518:43d6ef658874
21 mod = getattr(mod, testtarget) 21 mod = getattr(mod, testtarget)
22 doctest.testmod(mod, optionflags=optionflags) 22 doctest.testmod(mod, optionflags=optionflags)
23 23
24 testmod('mercurial.changegroup') 24 testmod('mercurial.changegroup')
25 testmod('mercurial.changelog') 25 testmod('mercurial.changelog')
26 testmod('mercurial.color')
26 testmod('mercurial.config') 27 testmod('mercurial.config')
27 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE) 28 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE)
28 testmod('mercurial.dispatch') 29 testmod('mercurial.dispatch')
29 testmod('mercurial.encoding') 30 testmod('mercurial.encoding')
30 testmod('mercurial.formatter') 31 testmod('mercurial.formatter')