[Differential] [Request, 2 lines] D67: test-check-pyflakes: do not leave test.py in the repo

quark (Jun Wu) phabricator at mercurial-scm.org
Wed Jul 12 22:28:45 UTC 2017


quark created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-check-pyflakes.t

CHANGE DETAILS

Index: tests/test-check-pyflakes.t
===================================================================
--- tests/test-check-pyflakes.t
+++ tests/test-check-pyflakes.t
@@ -1,7 +1,6 @@
 #require test-repo pyflakes hg10
 
   $ . "$TESTDIR/helpers-testrepo.sh"
-  $ cd "`dirname "$TESTDIR"`"
 
 run pyflakes on all tracked files ending in .py or without a file ending
 (skipping binary file random-seed)
@@ -12,6 +11,7 @@
   $ pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py"
   test.py:1: undefined name 'undefinedname'
   
+  $ cd "`dirname "$TESTDIR"`"
 
   $ testrepohg locate 'set:**.py or grep("^#!.*python")' \
   > -X hgext/fsmonitor/pywatchman \


EMAIL PREFERENCES
  https://phab.mercurial-scm.org/settings/panel/emailpreferences/

To: quark, #hg-reviewers
Cc: mercurial-devel, indygreg


More information about the Mercurial-devel mailing list