PyCQA / pycodestyle

Simple Python style checker in one Python file
https://pycodestyle.pycqa.org
Other
5.01k stars 755 forks source link

test: support running tests out of tree #1220

Closed bdrung closed 8 months ago

bdrung commented 8 months ago

The test test_check_diff will fail when running the tests out of tree, because pycodestyle will fail to find testing/data/E11.py.

So derive the relative path to the patched file from the test_shell.py location.