test: support running tests out of tree 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.