Skip to content

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
Ignore on Windows.
  • Loading branch information
ioannis-vm committed Oct 29, 2024
1 parent 93f8f79 commit a7d5e95
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pelicun/tests/basic/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

import argparse
import io
import platform
import re
import subprocess # noqa: S404
import tempfile
Expand Down Expand Up @@ -209,6 +210,10 @@ def test_logger_div() -> None:
assert f.read()


@pytest.mark.skipif(
platform.system() == 'Windows',
reason='Skipping test on Windows due to path handling issues.',
)
def test_logger_exception() -> None:
# Create a temporary directory for log files
temp_dir = tempfile.mkdtemp()
Expand All @@ -218,9 +223,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 = "{Path(temp_dir) / 'log.txt'}"
log = Logger(log_file=log_file, verbose=True, log_show_ms=True, print_log=True)
Expand Down

0 comments on commit a7d5e95

Please sign in to comment.