From 4db35f5f158ddeaf330d40f3f8e9109215ded15a Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Sun, 15 Sep 2024 22:36:11 +0200 Subject: [PATCH] Switch to os.path.join() --- tests/sphinx/test_base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/sphinx/test_base.py b/tests/sphinx/test_base.py index 327d1cbc1..47ebc80e5 100644 --- a/tests/sphinx/test_base.py +++ b/tests/sphinx/test_base.py @@ -9,7 +9,6 @@ import numpy as np import unittest import tempfile -import posixpath from pathlib import Path import warnings import scipy.constants @@ -442,8 +441,8 @@ def reload_guess(filelist): with tempfile.TemporaryDirectory() as tmpdir: # create temporary files to pass file existence checks - rho_file = posixpath.join(tmpdir, "rho.sxb") - waves_file = posixpath.join(tmpdir, "waves.sxb") + rho_file = os.path.join(tmpdir, "rho.sxb") + waves_file = os.path.join(tmpdir, "waves.sxb") Path(rho_file).touch() Path(waves_file).touch()