We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbda666 commit f7f4d56Copy full SHA for f7f4d56
pandas/tests/io/pytables/test_pytables_missing.py
@@ -3,12 +3,11 @@
3
import pandas.util._test_decorators as td
4
5
import pandas as pd
6
-import pandas._testing as tm
7
8
9
@td.skip_if_installed("tables")
10
-def test_pytables_raises():
+def test_pytables_raises(tmp_path):
11
df = pd.DataFrame({"A": [1, 2]})
+ path = tmp_path / "foo.h5"
12
with pytest.raises(ImportError, match="tables"):
13
- with tm.ensure_clean("foo.h5") as path:
14
- df.to_hdf(path, key="df")
+ df.to_hdf(path, key="df")
0 commit comments