From c41bdaa2b725394eb38751a2c8a4a2105bccb8ab Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Tue, 4 Feb 2020 22:50:58 +0100 Subject: [PATCH] Avoid for-else loop And here I thought this pythonic --- python/tests/test_account.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index 9f446cfcd..f924ab2c4 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -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: