From f3d0c2dc830350713c20e1c08f2ca6a6f51c34b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 20 Dec 2024 08:45:23 -0500 Subject: [PATCH] Tests: serial runner: FileExistsError not from pathlib MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The FileExistsError exception is not defined in the pathlib module; it is a built-in exception. Signed-off-by: Jérémie Galarneau Change-Id: I1c6fd640d03cc7bad7afd32bf9eaaa28a838455a --- tests/regression/tests.serial | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/tests.serial b/tests/regression/tests.serial index 6de8422e8..5584437f5 100755 --- a/tests/regression/tests.serial +++ b/tests/regression/tests.serial @@ -99,7 +99,7 @@ def run_test(test_script): test_log_dir = pathlib.Path("{}.log.d".format(test_script)) try: test_log_dir.mkdir(parents=True) - except pathlib.FileExistsError: + except FileExistsError: pass test_env["LTTNG_TEST_LOG_DIR"] = str(test_log_dir) process = subprocess.Popen( -- 2.39.5