Skip to content

Commit

Permalink
Fix the doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann committed Sep 28, 2024
1 parent 2f47800 commit e48dcfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/icalendar/tests/test_with_doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def test_documentation_file(document, zoneinfo_only, env_for_doctest, tzp):
functions are also replaced to work.
"""
try:
test_result = doctest.testfile(document, module_relative=False, globs=env_for_doctest, raise_on_error=False)
# set raise_on_error to False if you wand to see the error for debug
test_result = doctest.testfile(document, module_relative=False, globs=env_for_doctest, raise_on_error=True)
except doctest.UnexpectedException as e:
ty, err, tb = e.exc_info
if issubclass(ty, ModuleNotFoundError) and err.name == "pytz":
Expand Down

0 comments on commit e48dcfb

Please sign in to comment.