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,8 +17,7 @@ def datadir():
datadir = path.join('test-data')
if datadir.isdir():
return datadir
else:
pytest.skip('test-data directory not found')
pytest.skip('test-data directory not found')
class TestOfflineAccountBasic: