From: Jérémie Galarneau Date: Fri, 20 Dec 2024 13:45:23 +0000 (-0500) Subject: Tests: serial runner: FileExistsError not from pathlib X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f3d0c2dc830350713c20e1c08f2ca6a6f51c34b7;p=lttng-tools.git Tests: serial runner: FileExistsError not from pathlib 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 --- 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(