github / github/codeql

[Python] LGTM.com - false positive

Open
#5,777 2 comments 0 reactions 0 assignees View on GitHub
false-positive not security Python
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

**Description of the false positive**

This is a test comparing two objects. The two objects are created to have identical content, which is asserted. Then, one object is changed, and it is asserted that they are different now. LGTM thinks that they should still be equivalent. The test passes, which proves LGTM wrong :)

**URL to the alert on the project page on LGTM.com**

https://lgtm.com/projects/g/shirtsgroup/physical_validation/snapshot/1ab30ac2bfa1a86a40ee461d23624b92594c9307/files/physical_validation/tests/test_data_simulation_data.py?sort=name&dir=ASC&mode=heatmap#xd52d8129570232b3:1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.