mirror of
https://github.com/github/codeql.git
synced 2026-01-07 03:30:24 +01:00
Merge pull request #2 from RasmusWL/python-tricky-import-ssa-filter-definition
Python: Add test for tricky module member for type-tracking
This commit is contained in:
@@ -2,3 +2,6 @@ x = tracked # $tracked
|
||||
|
||||
def func():
|
||||
return tracked # $tracked
|
||||
|
||||
z = tracked # $tracked
|
||||
some_func(z) # $tracked
|
||||
|
||||
@@ -54,6 +54,7 @@ def test_import():
|
||||
mymodule.x # $tracked
|
||||
y = mymodule.func() # $tracked
|
||||
y # $tracked
|
||||
mymodule.z # $tracked
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
| test.py:57:16:57:25 | Comment # $tracked | Missing result:tracked= |
|
||||
|
||||
Reference in New Issue
Block a user