diff --git a/tests/test-check-pytype.t b/tests/test-check-pytype.t new file mode 100644 --- /dev/null +++ b/tests/test-check-pytype.t @@ -0,0 +1,38 @@ +#require pytype py3 slow + + $ cd $RUNTESTDIR/.. + +Many of the individual files that are excluded here confuse pytype +because they do a mix of Python 2 and Python 3 things +conditionally. There's no good way to help it out with that as far as +I can tell, so let's just hide those files from it for now. We should +endeavor to empty this list out over time, as some of these are +probably hiding real problems. + + + $ pytype mercurial \ + > -x mercurial/bundlerepo.py \ + > -x mercurial/chgserver.py \ + > -x mercurial/context.py \ + > -x mercurial/crecord.py \ + > -x mercurial/encoding.py \ + > -x mercurial/error.py \ + > -x mercurial/exchange.py \ + > -x mercurial/lsprof.py \ + > -x mercurial/policy.py \ + > -x mercurial/pycompat.py \ + > -x mercurial/urllibcompat.py \ + > -x mercurial/i18n.py \ + > -x mercurial/sslutil.py \ + > -x mercurial/scmwindows.py \ + > -x mercurial/keepalive.py \ + > -x mercurial/windows.py \ + > -x mercurial/wireprotoframing.py \ + > -x mercurial/utils/stringutil.py \ + > -x mercurial/hgweb/server.py \ + > -x mercurial/hgweb/wsgicgi.py \ + > -x mercurial/minirst.py \ + > -x mercurial/interfaces \ + > -x mercurial/cffi \ + > -x mercurial/pure \ + > -x mercurial/thirdparty