tests/test-check-pyflakes.t
changeset 22198 77142de48ae4
parent 22053 4354b1e35f53
child 27285 aef5b606d3ee
equal deleted inserted replaced
22197:f72d73937853 22198:77142de48ae4
     5 run pyflakes on all tracked files ending in .py or without a file ending
     5 run pyflakes on all tracked files ending in .py or without a file ending
     6 (skipping binary file random-seed)
     6 (skipping binary file random-seed)
     7 
     7 
     8   $ hg locate 'set:**.py or grep("^!#.*python")' 2>/dev/null \
     8   $ hg locate 'set:**.py or grep("^!#.*python")' 2>/dev/null \
     9   > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
     9   > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
    10   contrib/win32/hgwebdir_wsgi.py:*: 'win32traceutil' imported but unused (glob)
       
    11   setup.py:*: 'sha' imported but unused (glob)
       
    12   setup.py:*: 'zlib' imported but unused (glob)
       
    13   setup.py:*: 'bz2' imported but unused (glob)
       
    14   setup.py:*: 'py2exe' imported but unused (glob)
       
    15   tests/hghave.py:*: '_lsprof' imported but unused (glob)
       
    16   tests/hghave.py:*: 'publish_cmdline' imported but unused (glob)
       
    17   tests/hghave.py:*: 'pygments' imported but unused (glob)
       
    18   tests/hghave.py:*: 'ssl' imported but unused (glob)
       
    19   contrib/win32/hgwebdir_wsgi.py:93: 'from isapi.install import *' used; unable to detect undefined names (glob)
       
    20   tests/filterpyflakes.py:58: undefined name 'undefinedname'
    10   tests/filterpyflakes.py:58: undefined name 'undefinedname'
    21   
    11   
    22 
    12