From 7b4af854252c63e6f9087b3160a86ce29f0981ed Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 23 Sep 2022 07:18:08 +0200 Subject: [PATCH] Remove double-init in test --- tests/data/test_datahandler.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/data/test_datahandler.py b/tests/data/test_datahandler.py index 58f32e2d8..6d9f72a81 100644 --- a/tests/data/test_datahandler.py +++ b/tests/data/test_datahandler.py @@ -255,7 +255,6 @@ def test_hdf5datahandler_trades_purge(mocker, testdatadir): mocker.patch.object(Path, "exists", MagicMock(return_value=False)) unlinkmock = mocker.patch.object(Path, "unlink", MagicMock()) dh = get_datahandler(testdatadir, 'hdf5') - dh = get_datahandler(testdatadir, 'hdf5') assert not dh.trades_purge('UNITTEST/NONEXIST') assert unlinkmock.call_count == 0