Avoid for-else loop

And here I thought this pythonic
This commit is contained in:
Floris Bruynooghe
2020-02-04 22:50:58 +01:00
committed by Floris Bruynooghe
parent 4bf2fc18e5
commit c41bdaa2b7

View File

@@ -17,7 +17,6 @@ def datadir():
datadir = path.join('test-data') datadir = path.join('test-data')
if datadir.isdir(): if datadir.isdir():
return datadir return datadir
else:
pytest.skip('test-data directory not found') pytest.skip('test-data directory not found')