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

REVISION SUMMARY
  Update test-check-pyflakes.t to write test.py in the $TESTTMP directory.
  Previously when using "run_tests.py -l" it would write test.py into your local
  repository, leaving it behind as an untracked file after the test finished.

REPOSITORY
  rHG Mercurial

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

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
@@ -6,11 +6,11 @@
 run pyflakes on all tracked files ending in .py or without a file ending
 (skipping binary file random-seed)
 
-  $ cat > test.py <<EOF
+  $ cat > "$TESTTMP/test.py" <<EOF
   > print(undefinedname)
   > EOF
-  $ pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py"
-  test.py:1: undefined name 'undefinedname'
+  $ pyflakes "$TESTTMP/test.py" 2>/dev/null | "$TESTDIR/filterpyflakes.py"
+  $TESTTMP/test.py:1: undefined name 'undefinedname'
   
 
   $ testrepohg locate 'set:**.py or grep("^#!.*python")' \


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

To: simpkins, #hg-reviewers
Cc: mercurial-devel, indygreg
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to