-
-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Description
Describe the bug
It can be that equality depends on the order of equality.
To reproduce
>>> from icalendar import Calendar, Event
>>> calendar1 = Calendar()
>>> calendar2 = Calendar()
>>> calendar1.subcomponents = [event1, event2]
>>> calendar2.subcomponents = [event1, event1]
>>> calendar1 == calendar2
False
>>> calendar2 == calendar1
TrueExpected behavior
False always
Environment
- Operating system: Linux
- Python version: 3.13
-
icalendarversion: 7.0.1
Additional context
- The tests for this should be in test_equality.
- Make sure we have a linear run time where possible.
- Please test this with the calendars and then also the deep copy
.copy(recursive=True)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels