Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures with icalendar v6 #144

Open
dotlambda opened this issue Oct 1, 2024 · 0 comments · May be fixed by #145
Open

Test failures with icalendar v6 #144

dotlambda opened this issue Oct 1, 2024 · 0 comments · May be fixed by #145

Comments

@dotlambda
Copy link

Icalendar v6 was released: https://github.com/collective/icalendar/blob/main/README.rst#version-6-with-zoneinfo
Running pytest fails with

============================= test session starts ==============================
platform linux -- Python 3.12.5, pytest-8.3.2, pluggy-1.5.0
rootdir: /build/source
configfile: pyproject.toml
collected 7 items / 2 errors                                                   

==================================== ERRORS ====================================
___________________ ERROR collecting test/test_icalevents.py ___________________
ImportError while importing test module '/build/source/test/test_icalevents.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/h3i0acpmr8mrjx07519xxmidv8mpax4y-python3-3.12.5/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_icalevents.py:2: in <module>
    from icalevents import icalevents
icalevents/icalevents.py:3: in <module>
    from .icalparser import parse_events, Event
icalevents/icalparser.py:18: in <module>
    from icalendar.windows_to_olson import WINDOWS_TO_OLSON
E   ModuleNotFoundError: No module named 'icalendar.windows_to_olson'
___________________ ERROR collecting test/test_icalparser.py ___________________
ImportError while importing test module '/build/source/test/test_icalparser.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/h3i0acpmr8mrjx07519xxmidv8mpax4y-python3-3.12.5/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_icalparser.py:2: in <module>
    import icalevents.icalparser
icalevents/icalparser.py:18: in <module>
    from icalendar.windows_to_olson import WINDOWS_TO_OLSON
E   ModuleNotFoundError: No module named 'icalendar.windows_to_olson'
=========================== short test summary info ============================
ERROR test/test_icalevents.py
ERROR test/test_icalparser.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 2 errors in 0.22s ===============================
@dotlambda dotlambda linked a pull request Oct 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant