mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Python: Fix tests
With `ModuleVariableNode`s now appearing for _all_ global variables (not just the ones that actually seem to be used), some of the tests changed a bit. Mostly this was in the form of new flow (because of new nodes that popped into existence). For some inline expectation tests, I opted to instead exclude these results, as there was no suitable location to annotate. For the normal tests, I just accepted the output (after having vetted it carefully, of course).
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
| test.py:0:0:0:0 | ModuleVariableNode in Module test for __name__ |
|
||||
| test.py:0:0:0:0 | ModuleVariableNode in Module test for __package__ |
|
||||
| test.py:0:0:0:0 | ModuleVariableNode in Module test for a |
|
||||
| test.py:0:0:0:0 | ModuleVariableNode in Module test for b |
|
||||
| test.py:0:0:0:0 | ModuleVariableNode in Module test for obfuscated_id |
|
||||
| test.py:1:1:1:21 | ControlFlowNode for FunctionExpr |
|
||||
| test.py:1:1:1:21 | SynthDictSplatParameterNode |
|
||||
| test.py:1:5:1:17 | ControlFlowNode for obfuscated_id |
|
||||
|
||||
Reference in New Issue
Block a user