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 5cc3240 commit 323f4eaCopy full SHA for 323f4ea
pandas/tests/io/xml/test_xml.py
@@ -263,11 +263,10 @@ def parser(request):
263
return request.param
264
265
266
-def read_xml_iterparse(data, **kwargs):
267
- with tm.ensure_clean() as path:
268
- with open(path, "w", encoding="utf-8") as f:
269
- f.write(data)
270
- return read_xml(path, **kwargs)
+def read_xml_iterparse(data, temp_file, **kwargs):
+ with open(temp_file, "w", encoding="utf-8") as f:
+ f.write(data)
+ return read_xml(temp_file, **kwargs)
271
272
273
def read_xml_iterparse_comp(comp_path, compression_only, **kwargs):
0 commit comments