Show More
@@ -25,7 +25,7 b' class py3docchecker(doctest.OutputChecke' | |||||
25 | for w, g in [(want, got), (want2, got2)]) |
|
25 | for w, g in [(want, got), (want2, got2)]) | |
26 |
|
26 | |||
27 | # TODO: migrate doctests to py3 and enable them on both versions |
|
27 | # TODO: migrate doctests to py3 and enable them on both versions | |
28 |
def testmod(name, optionflags=0, testtarget=None, py2=True, py3= |
|
28 | def testmod(name, optionflags=0, testtarget=None, py2=True, py3=True): | |
29 | if not (not ispy3 and py2 or ispy3 and py3): |
|
29 | if not (not ispy3 and py2 or ispy3 and py3): | |
30 | return |
|
30 | return | |
31 | __import__(name) |
|
31 | __import__(name) | |
@@ -48,30 +48,31 b" testmod('mercurial.changelog')" | |||||
48 | testmod('mercurial.color') |
|
48 | testmod('mercurial.color') | |
49 | testmod('mercurial.config') |
|
49 | testmod('mercurial.config') | |
50 | testmod('mercurial.context') |
|
50 | testmod('mercurial.context') | |
51 |
testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE |
|
51 | testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE, | |
|
52 | py3=False) # py3: use of str() | |||
52 | testmod('mercurial.dispatch') |
|
53 | testmod('mercurial.dispatch') | |
53 | testmod('mercurial.encoding') |
|
54 | testmod('mercurial.encoding', py3=False) # py3: multiple encoding issues | |
54 | testmod('mercurial.formatter') |
|
55 | testmod('mercurial.formatter', py3=False) # py3: write bytes to stdout | |
55 | testmod('mercurial.hg') |
|
56 | testmod('mercurial.hg') | |
56 | testmod('mercurial.hgweb.hgwebdir_mod') |
|
57 | testmod('mercurial.hgweb.hgwebdir_mod', py3=False) # py3: repr(bytes) ? | |
57 | testmod('mercurial.match') |
|
58 | testmod('mercurial.match') | |
58 | testmod('mercurial.mdiff') |
|
59 | testmod('mercurial.mdiff') | |
59 | testmod('mercurial.minirst') |
|
60 | testmod('mercurial.minirst') | |
60 | testmod('mercurial.patch') |
|
61 | testmod('mercurial.patch', py3=False) # py3: bytes[n], etc. ? | |
61 | testmod('mercurial.pathutil') |
|
62 | testmod('mercurial.pathutil', py3=False) # py3: os.sep | |
62 | testmod('mercurial.parser') |
|
63 | testmod('mercurial.parser') | |
63 |
testmod('mercurial.pycompat' |
|
64 | testmod('mercurial.pycompat') | |
64 | testmod('mercurial.revsetlang') |
|
65 | testmod('mercurial.revsetlang') | |
65 | testmod('mercurial.smartset') |
|
66 | testmod('mercurial.smartset') | |
66 | testmod('mercurial.store') |
|
67 | testmod('mercurial.store', py3=False) # py3: bytes[n] | |
67 | testmod('mercurial.subrepo') |
|
68 | testmod('mercurial.subrepo') | |
68 | testmod('mercurial.templatefilters') |
|
69 | testmod('mercurial.templatefilters') | |
69 | testmod('mercurial.templater') |
|
70 | testmod('mercurial.templater') | |
70 | testmod('mercurial.ui') |
|
71 | testmod('mercurial.ui', py3=False) # py3: __name__ | |
71 | testmod('mercurial.url') |
|
72 | testmod('mercurial.url') | |
72 | testmod('mercurial.util') |
|
73 | testmod('mercurial.util', py3=False) # py3: multiple bytes/unicode issues | |
73 | testmod('mercurial.util', testtarget='platform') |
|
74 | testmod('mercurial.util', testtarget='platform') | |
74 | testmod('hgext.convert.convcmd') |
|
75 | testmod('hgext.convert.convcmd', py3=False) # py3: use of str() ? | |
75 | testmod('hgext.convert.cvsps') |
|
76 | testmod('hgext.convert.cvsps') | |
76 | testmod('hgext.convert.filemap') |
|
77 | testmod('hgext.convert.filemap') | |
77 | testmod('hgext.convert.p4') |
|
78 | testmod('hgext.convert.p4') |
General Comments 0
You need to be logged in to leave comments.
Login now