From 4a7163a73b447bd80215540a25eea5e36598fef0 Mon Sep 17 00:00:00 2001 From: John Vouvakis Manousakis Date: Mon, 28 Oct 2024 18:48:24 -0700 Subject: [PATCH] Update test. Update script defined within test so that it works on Windows. --- pelicun/tests/basic/test_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pelicun/tests/basic/test_base.py b/pelicun/tests/basic/test_base.py index 01dd98bc..66ab9655 100644 --- a/pelicun/tests/basic/test_base.py +++ b/pelicun/tests/basic/test_base.py @@ -218,9 +218,10 @@ def test_logger_exception() -> None: test_script_content = f""" import sys import traceback +from pathlib import Path from pelicun.base import Logger -log_file = "{temp_dir}/log.txt" +log_file = "{temp_dir.replace('\\', '\\\\')}\\log.txt" log = Logger(log_file=log_file, verbose=True, log_show_ms=True, print_log=True)