Python: Exclude synth preupdate nodes from tt-consistency

... and that should be it 👍 (so that's why I'm allowing the tests to
run on all data-flow nodes again)
This commit is contained in:
Rasmus Wriedt Larsen
2024-03-01 10:27:29 +01:00
parent bbe8c6dcaa
commit ff5f794750
2 changed files with 2 additions and 4 deletions

View File

@@ -5,9 +5,9 @@ private import semmle.python.dataflow.new.internal.TypeTrackingImpl
private module ConsistencyChecksInput implements ConsistencyChecksInputSig {
predicate unreachableNodeExclude(DataFlow::Node n) {
not exists(n.getLocation().getFile().getRelativePath())
or
n instanceof DataFlowPrivate::SyntheticPostUpdateNode
or
n instanceof DataFlowPrivate::SyntheticPreUpdateNode
}
}

View File

@@ -1,2 +0,0 @@
unreachableNode
| attribute_tests.py:159:12:159:21 | [pre] ControlFlowNode for MyClass2() | Unreachable node in step of kind call. |