JetBrains-Research / PyNose

A test smell detector for Python.
Apache License 2.0
49 stars 9 forks source link

False positive: duplicate assertion #41

Open SmirnovOleg opened 2 years ago

SmirnovOleg commented 2 years ago

Project: pip File link: https://github.com/pypa/pip/blob/12dad051804907fae1b2232fba3d218035881a60/tests/unit/test_req.py#L494

image

@OlesiaSub Do we need to check that there was a reassignment of the variable between duplicate assertions to avoid such FPs?

OlesiaSub commented 2 years ago

yes, I think we even discussed it a while ago. and I guess I could implement it.