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 de81cb9 commit ca0e751Copy full SHA for ca0e751
pandas/tests/io/xml/test_to_xml.py
@@ -5,7 +5,6 @@
5
StringIO,
6
)
7
import os
8
-from pathlib import Path
9
10
import numpy as np
11
import pytest
@@ -204,11 +203,10 @@ def test_str_output(datapath, parser):
204
203
205
def test_wrong_file_path(parser):
206
path = "/my/fake/path/output.xml"
207
- parent = Path(path).parent
208
209
with pytest.raises(
210
OSError,
211
- match=(fr"Cannot save file into a non-existent directory: '{parent}'"),
+ match=(r"Cannot save file into a non-existent directory: .*path"),
212
):
213
geom_df.to_xml(path, parser=parser)
214
0 commit comments