Adjust a couple of query tests to work with latest points-to.

This commit is contained in:
Mark Shannon
2019-04-29 14:28:51 +01:00
parent 6a5ec51623
commit 65a30ab392
2 changed files with 3 additions and 3 deletions

View File

@@ -1,2 +1 @@
| expressions_test.py:51:4:51:11 | Compare | The result of this comparison with 'is' may differ between implementations of Python. |
| expressions_test.py:56:4:56:16 | Compare | The result of this comparison with 'is' may differ between implementations of Python. |

View File

@@ -5,5 +5,6 @@ import python
import semmle.python.security.SensitiveData
import semmle.python.security.Crypto
from TaintedNode n
select n.getTrackedValue(), n.getLocation(), n.getNode().getNode(), n.getContext()
from TaintedNode n, AstNode src
where src = n.getNode().getNode() and src.getLocation().getFile().getName().matches("%test%")
select n.getTrackedValue(), n.getLocation(), src, n.getContext()