Skip to content

Commit e4a3f0d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a944719 commit e4a3f0d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_tasks/test_split.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# License: BSD 3-Clause
22
from __future__ import annotations
33

4+
import contextlib
45
import inspect
56
import os
67
import shutil
@@ -39,10 +40,8 @@ def setUp(self):
3940

4041
def tearDown(self):
4142
# Clean up the entire temp directory
42-
try:
43+
with contextlib.suppress(OSError, FileNotFoundError):
4344
self._temp_dir.cleanup()
44-
except (OSError, FileNotFoundError):
45-
pass
4645

4746
def test_eq(self):
4847
split = OpenMLSplit._from_arff_file(self.arff_filepath)

0 commit comments

Comments
 (0)