From b1c632371bb070d4b845bfdb7cf6d02ecf9cb578 Mon Sep 17 00:00:00 2001 From: devdanzin <74280297+devdanzin@users.noreply.github.com> Date: Fri, 19 Jul 2024 12:03:10 -0300 Subject: [PATCH 1/3] Fix test_with_doctest.py to run on Windows. --- src/icalendar/tests/test_with_doctest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/icalendar/tests/test_with_doctest.py b/src/icalendar/tests/test_with_doctest.py index b1f34561..04a803e1 100644 --- a/src/icalendar/tests/test_with_doctest.py +++ b/src/icalendar/tests/test_with_doctest.py @@ -21,13 +21,13 @@ ICALENDAR_PATH = os.path.dirname(HERE) PYTHON_FILES = [ - os.path.join(dirpath, filename) + "/".join((dirpath, filename)) for dirpath, dirnames, filenames in os.walk(ICALENDAR_PATH) for filename in filenames if filename.lower().endswith(".py") and 'fuzzing' not in dirpath ] MODULE_NAMES = [ - "icalendar" + python_file[len(ICALENDAR_PATH):-3].replace("/", ".") + "icalendar" + python_file[len(ICALENDAR_PATH):-3].replace("\\", "/").replace("/", ".") for python_file in PYTHON_FILES ] From 8db1b1566fa90bf865e0e829a1fb0e8ae40c0fc9 Mon Sep 17 00:00:00 2001 From: devdanzin <74280297+devdanzin@users.noreply.github.com> Date: Fri, 19 Jul 2024 17:31:52 -0300 Subject: [PATCH 2/3] Add a note to CHANGES.rst. --- CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.rst b/CHANGES.rst index 6572279e..af520da2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,7 @@ Changelog Minor changes: - add ``__all__`` variable to each modules in ``icalendar`` package +- Adapt ``test_with_doctest.py`` to correctly run on Windows. Breaking changes: From 8b13fc5e96f3d9cae41abfaf3ce62dd0d683666c Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Thu, 25 Jul 2024 18:50:19 +0100 Subject: [PATCH 3/3] Update src/icalendar/tests/prop/test_vCalAddress.py --- src/icalendar/tests/prop/test_vCalAddress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icalendar/tests/prop/test_vCalAddress.py b/src/icalendar/tests/prop/test_vCalAddress.py index 62ea0e9f..b8e1f789 100644 --- a/src/icalendar/tests/prop/test_vCalAddress.py +++ b/src/icalendar/tests/prop/test_vCalAddress.py @@ -21,4 +21,4 @@ def test_from_ical(): def test_repr(): instance = vCalAddress("value") - assert repr(instance) == "vCalAddress('b'value'')" \ No newline at end of file + assert repr(instance) == "vCalAddress('value')" \ No newline at end of file