Patchwork [1,of,2] tests: capitalize Python when it's not used as a command name

login
register
mail settings
Submitter Augie Fackler
Date June 29, 2017, 8:17 p.m.
Message ID <8238b8e8920aee16caa5.1498767430@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/21843/
State Changes Requested
Headers show

Comments

Augie Fackler - June 29, 2017, 8:17 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1497992947 14400
#      Tue Jun 20 17:09:07 2017 -0400
# Node ID 8238b8e8920aee16caa57b97aef8bc988559c67b
# Parent  98e2c78e309cf750fa6dff6c8965fb24b979022c
tests: capitalize Python when it's not used as a command name

Summary: This avoids some false positives in an upcoming check-code rule.

Differential Revision: https://hg-phab.durin42.com/D3

Patch

diff --git a/tests/test-bundle2-remote-changegroup.t b/tests/test-bundle2-remote-changegroup.t
--- a/tests/test-bundle2-remote-changegroup.t
+++ b/tests/test-bundle2-remote-changegroup.t
@@ -29,7 +29,7 @@  Create an extension to test bundle2 remo
   >           from the given file.
   >       - raw-remote-changegroup <python expression>
   >           Creates a remote-changegroup part with the data given in the
-  >           python expression as parameters. The python expression is
+  >           Python expression as parameters. The Python expression is
   >           evaluated with eval, and is expected to be a dict.
   >     """
   >     def newpart(name, data=''):
diff --git a/tests/test-hook.t b/tests/test-hook.t
--- a/tests/test-hook.t
+++ b/tests/test-hook.t
@@ -4,7 +4,7 @@  commit hooks can see env vars
 
   $ cat > $TESTTMP/txnabort.checkargs.py <<EOF
   > def showargs(ui, repo, hooktype, **kwargs):
-  >     ui.write('%s python hook: %s\n' % (hooktype, ','.join(sorted(kwargs))))
+  >     ui.write('%s Python hook: %s\n' % (hooktype, ','.join(sorted(kwargs))))
   > EOF
 
   $ hg init a
@@ -175,7 +175,7 @@  more there after
   5:6f611f8018c1
   pretxncommit.forbid hook: HG_HOOKNAME=pretxncommit.forbid1 HG_HOOKTYPE=pretxncommit HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/a
   transaction abort!
-  txnabort python hook: txnid,txnname
+  txnabort Python hook: txnid,txnname
   txnabort hook: HG_HOOKNAME=txnabort.1 HG_HOOKTYPE=txnabort HG_TXNID=TXN:$ID$ HG_TXNNAME=commit
   rollback completed
   abort: pretxncommit.forbid1 hook exited with status 1