Skip to content

Commit

Permalink
Merge pull request #695 from devdanzin/doctests_in_windows
Browse files Browse the repository at this point in the history
Fix test_with_doctest.py to run on Windows.
  • Loading branch information
niccokunzmann committed Jul 20, 2024
2 parents bde1275 + 8db1b15 commit 1b145d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions src/icalendar/tests/test_with_doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]

Expand Down

0 comments on commit 1b145d6

Please sign in to comment.