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

login
register
mail settings
Submitter phabricator
Date Nov. 19, 2019, 6:13 p.m.
Message ID <087ec112b1e8cf633bfa2600a5218220@localhost.localdomain>
Download mbox | patch
Permalink /patch/43365/
State Not Applicable
Headers show

Comments

phabricator - Nov. 19, 2019, 6:13 p.m.
durin42 updated this revision to Diff 18242.

REPOSITORY
  rHG Mercurial

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

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: mharbison72, 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