Patchwork D7295: pytype: add a (very slow) test that executes pytype

login
register
mail settings
Submitter phabricator
Date Nov. 14, 2019, 9:12 p.m.
Message ID <c5e2bffa2d8928c76e04e9cb5cb20cf1@localhost.localdomain>
Download mbox | patch
Permalink /patch/43216/
State Not Applicable
Headers show

Comments

phabricator - Nov. 14, 2019, 9:12 p.m.
durin42 updated this revision to Diff 18104.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7295?vs=18072&id=18104

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7295/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7295

AFFECTED FILES
  tests/test-check-pytype.t

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: dlax, indygreg, mjpieters, mercurial-devel

Patch

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