comparison tests/test-doctest.py @ 31481:a7c687c35119

ui: move configlist parser to config.py The list parser is complex and reusable without ui. Let's move it to config.py. This allows us to parse a list from a "pure" config object without going through ui. Like, we can make "_trustusers" calculated from raw configs, instead of making sure it's synchronized by calling "fixconfig"s.
author Jun Wu <quark@fb.com>
date Fri, 17 Mar 2017 09:19:56 -0700
parents b70407bd84d5
children 43d6ef658874
comparison
equal deleted inserted replaced
31480:07fe520280d2 31481:a7c687c35119
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.config')
26 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE) 27 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE)
27 testmod('mercurial.dispatch') 28 testmod('mercurial.dispatch')
28 testmod('mercurial.encoding') 29 testmod('mercurial.encoding')
29 testmod('mercurial.formatter') 30 testmod('mercurial.formatter')
30 testmod('mercurial.hg') 31 testmod('mercurial.hg')