kopia lustrzana https://github.com/collective/icalendar
Merge branch 'main' into docs/add_vrecur_example
commit
e07eb4ebcc
|
@ -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:
|
||||
|
||||
|
|
|
@ -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 (
|
||||
|
|
Ładowanie…
Reference in New Issue