mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Select location first in tornado Classes test
so it conforms with the general scheme in tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
| class DeepInheritance | test.py:23 |
|
||||
| class Handler1 | test.py:4 |
|
||||
| class Handler2 | test.py:8 |
|
||||
| class Handler3 | test.py:14 |
|
||||
| test.py:4 | class Handler1 |
|
||||
| test.py:8 | class Handler2 |
|
||||
| test.py:14 | class Handler3 |
|
||||
| test.py:23 | class DeepInheritance |
|
||||
|
||||
@@ -6,4 +6,4 @@ import semmle.python.TestUtils
|
||||
import semmle.python.web.tornado.Tornado
|
||||
from ClassValue cls
|
||||
where cls = aTornadoRequestHandlerClass()
|
||||
select cls.toString(), remove_library_prefix(cls.getScope().getLocation())
|
||||
select remove_library_prefix(cls.getScope().getLocation()), cls.toString()
|
||||
|
||||
Reference in New Issue
Block a user