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

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Nov 14 16:12:20 EST 2019


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

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



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


More information about the Mercurial-devel mailing list