Am 04.12.2017 um 16:23 schrieb Yury Krasouski:
> Hello Team,
>
> To begin with, I would like to say "Thank You" for great tools.
>
> I am writing here to ask question about _pytest/mark.MarkMapping
> behavior which was used in one plug-in. I noted that API is changed a
> little what produced issue like this:
> https://github.com/reportportal/agent-python-pytest/issues/37
> <https://github.com/reportportal/agent-python-pytest/issues/37>
>
> The fix is simple at first look: just replace _marks to
> own_mark_names. But I wonder about inconvenient behavior of
>
> > def __getitem__(self, name):
> >     return name in self.own_mark_names
>
> I would expect to call list(MarkMapping) which will return list of
> mark names, but instead this returns infinite iterator which produced
> False (or True in some cases). the im
> What is the reason for such behavior?
>
the implementation of MarkMapping is only complete enough to fulfill its
internal use case
it has no correct iteration behavior implemented, thus the fallback of
python breaks

any use of this class outside of the code path it was hacked up for is
likely completely incorrect

-- Ronny


>
> Thanks,
> Yury
>
>
> _______________________________________________
> pytest-dev mailing list
> pytest-dev@python.org
> https://mail.python.org/mailman/listinfo/pytest-dev

_______________________________________________
pytest-dev mailing list
pytest-dev@python.org
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to