MarkDecorator __eq__ override can lead to bad side effects #2758
Labels
good first issue
easy issue that is friendly to new contributor
type: bug
problem that needs to be addressed
type: regression
indicates a problem that was introduced in a release which was working previously
The MarkDecorator
__eq__
method assumes that it will always be compared with another mark. If you do large parametrizations based on lists, then you'll likely run into scenarios where this isn't the case (especially if you do combinations of lists).Simple example:
You'll get an error on collection:
This affects sets, lists (including
list.index
!), anything that checks for equality.The text was updated successfully, but these errors were encountered: