Merge branch 'main' into docs/add_vrecur_example

pull/759/head
Nicco Kunzmann 2024-12-22 00:11:26 +00:00 zatwierdzone przez GitHub
commit e07eb4ebcc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -8,6 +8,7 @@ Minor changes:
- Add a ``weekday`` attribute to ``vWeekday`` components. See `Issue 749 <https://github.com/collective/icalendar/issues/749>`_.
- Document ``vRecur`` property. See `Issue 758 <https://github.com/collective/icalendar/issues/758>`_.
- Print failure of doctest to aid debugging.
Breaking changes:

Wyświetl plik

@ -85,15 +85,15 @@ def test_documentation_file(document, zoneinfo_only, env_for_doctest, tzp):
functions are also replaced to work.
"""
try:
import pytz
except ImportError:
pytest.skip("pytz not installed, skipping this file.")
try:
# 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
document, module_relative=False, globs=env_for_doctest, raise_on_error=False
)
except doctest.UnexpectedException as e:
ty, err, tb = e.exc_info
if issubclass(ty, ModuleNotFoundError) and err.name == "pytz":
pytest.skip("pytz not installed, skipping this file.")
finally:
tzp.use_zoneinfo()
assert (