[PATCH] test-check-pylint: match its output

Jun Wu quark at fb.com
Fri Apr 7 18:10:11 UTC 2017


# HG changeset patch
# User Jun Wu <quark at fb.com>
# Date 1491588594 25200
#      Fri Apr 07 11:09:54 2017 -0700
# Node ID 58c9ffb81e676df4613c86c9ebd75836f1567ced
# Parent  0d57661098e3f93e7d1ab4e206d87d39c6ce4f84
# Available At https://bitbucket.org/quark-zju/hg-draft
#              hg pull https://bitbucket.org/quark-zju/hg-draft -r 58c9ffb81e67
test-check-pylint: match its output

"pylint --version" shows:

  pylint 2.0.0,
  astroid 1.5.0
  Python 2.7.13 (default, Dec 21 2016, 07:16:46)
  [GCC 6.2.1 20160830]

I got "Your code has been rated at 10.00/10" every time and didn't know how
to turn it off. Therefore the fix.

diff --git a/tests/test-check-pylint.t b/tests/test-check-pylint.t
--- a/tests/test-check-pylint.t
+++ b/tests/test-check-pylint.t
@@ -14,2 +14,6 @@ Current checks:
   >   --enable=W0102 --reports=no \
   >   mercurial hgext hgext3rd
+   (?)
+  ------------------------------------ (?)
+  Your code has been rated at 10.00/10 (?)
+   (?)


More information about the Mercurial-devel mailing list