##// END OF EJS Templates
tests: add a (very slow) test that executes pytype...
Matt Harbison -
r47660:e1d75c51 default
parent child Browse files
Show More
@@ -0,0 +1,105 b''
1 #require pytype py3 slow
2
3 $ cd $RUNTESTDIR/..
4
5 Many of the individual files that are excluded here confuse pytype
6 because they do a mix of Python 2 and Python 3 things
7 conditionally. There's no good way to help it out with that as far as
8 I can tell, so let's just hide those files from it for now. We should
9 endeavor to empty this list out over time, as some of these are
10 probably hiding real problems.
11
12 mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo
13 mercurial/changegroup.py # mysterious incorrect type detection
14 mercurial/chgserver.py # [attribute-error]
15 mercurial/cmdutil.py # No attribute 'markcopied' on mercurial.context.filectx [attribute-error]
16 mercurial/context.py # many [attribute-error]
17 mercurial/copies.py # No attribute 'items' on None [attribute-error]
18 mercurial/crecord.py # tons of [attribute-error], [module-attr]
19 mercurial/debugcommands.py # [wrong-arg-types]
20 mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error]
21 mercurial/exchange.py # [attribute-error]
22 mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
23 mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
24 mercurial/hgweb/webcommands.py # [missing-parameter]
25 mercurial/hgweb/wsgicgi.py # confused values in os.environ
26 mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
27 mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
28 mercurial/keepalive.py # [attribute-error]
29 mercurial/localrepo.py # [attribute-error]
30 mercurial/lsprof.py # unguarded import
31 mercurial/manifest.py # [unsupported-operands], [wrong-arg-types]
32 mercurial/minirst.py # [unsupported-operands], [attribute-error]
33 mercurial/patch.py # [wrong-arg-types]
34 mercurial/pure/osutil.py # [invalid-typevar], [not-callable]
35 mercurial/pure/parsers.py # [attribute-error]
36 mercurial/pycompat.py # bytes vs str issues
37 mercurial/repoview.py # [attribute-error]
38 mercurial/sslutil.py # [attribute-error]
39 mercurial/statprof.py # bytes vs str on TextIO.write() [wrong-arg-types]
40 mercurial/testing/storage.py # tons of [attribute-error]
41 mercurial/ui.py # [attribute-error], [wrong-arg-types]
42 mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
43 mercurial/upgrade.py # line 84, in upgraderepo: No attribute 'discard' on Dict[nothing, nothing] [attribute-error]
44 mercurial/util.py # [attribute-error], [wrong-arg-count]
45 mercurial/utils/procutil.py # [attribute-error], [module-attr], [bad-return-type]
46 mercurial/utils/stringutil.py # [module-attr], [wrong-arg-count]
47 mercurial/utils/memorytop.py # not 3.6 compatible
48 mercurial/win32.py # [not-callable]
49 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
50 mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error]
51 mercurial/wireprotov1peer.py # [attribute-error]
52 mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
53 mercurial/wireprotov2server.py # [unsupported-operands], [attribute-error]
54
55 TODO: use --no-cache on test server? Caching the files locally helps during
56 development, but may be a hinderance for CI testing.
57
58 $ pytype -V 3.6 --keep-going --jobs auto mercurial \
59 > -x mercurial/bundlerepo.py \
60 > -x mercurial/changegroup.py \
61 > -x mercurial/chgserver.py \
62 > -x mercurial/cmdutil.py \
63 > -x mercurial/context.py \
64 > -x mercurial/copies.py \
65 > -x mercurial/crecord.py \
66 > -x mercurial/debugcommands.py \
67 > -x mercurial/dispatch.py \
68 > -x mercurial/exchange.py \
69 > -x mercurial/hgweb/hgweb_mod.py \
70 > -x mercurial/hgweb/server.py \
71 > -x mercurial/hgweb/webcommands.py \
72 > -x mercurial/hgweb/wsgicgi.py \
73 > -x mercurial/httppeer.py \
74 > -x mercurial/interfaces \
75 > -x mercurial/keepalive.py \
76 > -x mercurial/localrepo.py \
77 > -x mercurial/lsprof.py \
78 > -x mercurial/manifest.py \
79 > -x mercurial/minirst.py \
80 > -x mercurial/patch.py \
81 > -x mercurial/pure/osutil.py \
82 > -x mercurial/pure/parsers.py \
83 > -x mercurial/pycompat.py \
84 > -x mercurial/repoview.py \
85 > -x mercurial/sslutil.py \
86 > -x mercurial/statprof.py \
87 > -x mercurial/testing/storage.py \
88 > -x mercurial/thirdparty \
89 > -x mercurial/ui.py \
90 > -x mercurial/unionrepo.py \
91 > -x mercurial/upgrade.py \
92 > -x mercurial/util.py \
93 > -x mercurial/utils/procutil.py \
94 > -x mercurial/utils/stringutil.py \
95 > -x mercurial/utils/memorytop.py \
96 > -x mercurial/win32.py \
97 > -x mercurial/wireprotoframing.py \
98 > -x mercurial/wireprotoserver.py \
99 > -x mercurial/wireprotov1peer.py \
100 > -x mercurial/wireprotov1server.py \
101 > -x mercurial/wireprotov2server.py \
102 > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt
103
104 Only show the results on a failure, because the output on success is also
105 voluminous and variable.
General Comments 0
You need to be logged in to leave comments. Login now