harbor run -t swe-rebench/astropy__astropy-17705harbor download swe-rebench/astropy__astropy-17705Path handling in FITS broke benchmark code @neutrinoceros , I vaguely remember you did some Path support on this recently. Are you able to assist with debugging? Thanks!
I see this when I apply benchmark label on a PR that did not touch FITS code (#17689). Example log: https://github.com/astropy/astropy/actions/runs/13077182006/job/36492129500
Example traceback (one of several):
2025-01-31T17:19:04.4902399Z [61.15%] ···· Traceback (most recent call last):
2025-01-31T17:19:04.4912535Z File "/home/runner/work/astropy/astropy/env/2bc11cad084fa5bfe9c66b8a2af28d97/lib/python3.11/site-packages/asv_runner/server.py", line 179, in _run_server
2025-01-31T17:19:04.4913752Z _run(run_args)
2025-01-31T17:19:04.4914813Z File "/home/runner/work/astropy/astropy/env/2bc11cad084fa5bfe9c66b8a2af28d97/lib/python3.11/site-packages/asv_runner/run.py", line 65, in _run
2025-01-31T17:19:04.4915841Z skip = benchmark.do_setup()
2025-01-31T17:19:04.4916258Z ^^^^^^^^^^^^^^^^^^^^
2025-01-31T17:19:04.4917388Z File "/home/runner/work/astropy/astropy/env/2bc11cad084fa5bfe9c66b8a2af28d97/lib/python3.11/site-packages/asv_runner/benchmarks/time.py", line 80, in do_setup
2025-01-31T17:19:04.4918552Z result = Benchmark.do_setup(self)
2025-01-31T17:19:04.4918954Z ^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-31T17:19:04.4920446Z File "/home/runner/work/astropy/astropy/env/2bc11cad084fa5bfe9c66b8a2af28d97/lib/python3.11/site-packages/asv_runner/benchmarks/_base.py", line 632, in do_setup
2025-01-31T17:19:04.4922410Z setup(*self._current_params)
2025-01-31T17:19:04.4923198Z File "/home/runner/work/astropy/astropy/astropy-benchmarks/benchmarks/io_fits.py", line 26, in setup
2025-01-31T17:19:04.4923966Z t.write(temp, format="fits")
2025-01-31T17:19:04.4925112Z File "/home/runner/work/astropy/astropy/env/2bc11cad084fa5bfe9c66b8a2af28d97/lib/python3.11/site-packages/astropy/table/connect.py", line 130, in __call__
2025-01-31T17:19:04.4926320Z self.registry.write(instance, *args, **kwargs)
2025-01-31T17:19:04.4927578Z File "/home/runner/work/astropy/astropy/env/2bc11cad084fa5bfe9c66b8a2af28d97/lib/python3.11/site-packages/astropy/io/registry/core.py", line 386, in write
2025-01-31T17:19:04.4928737Z return writer(data, *args, **kwargs)
2025-01-31T17:19:04.4929148Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-31T17:19:04.4930385Z File "/home/runner/work/astropy/astropy/env/2bc11cad084fa5bfe9c66b8a2af28d97/lib/python3.11/site-packages/astropy/io/fits/connect.py", line 451, in write_table_fits
2025-01-31T17:19:04.4931742Z if os.path.exists(output):
2025-01-31T17:19:04.4932137Z ^^^^^^^^^^^^^^^^^^^^^^
2025-01-31T17:19:04.4932640Z File "<frozen genericpath>", line 19, in exists
2025-01-31T17:19:04.4933381Z TypeError: stat: path should be string, bytes, os.PathLike or integer, not _TemporaryFileWrapper
2025-01-31T17:19:04.4934061Z asv: benchmark failed (exit status 1)