mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Python: Add copy of internal Python 2 tests
These are mostly extractor tests, which now live in `2/extractor-tests`, and a single library tests that was added to the existing directory.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| Module test | test |
|
||||
5
python/ql/test/2/extractor-tests/syntax_error/Modules.ql
Normal file
5
python/ql/test/2/extractor-tests/syntax_error/Modules.ql
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
import python
|
||||
|
||||
from Module m
|
||||
select m.toString(), m.getName()
|
||||
@@ -0,0 +1 @@
|
||||
| Syntax Error |
|
||||
4
python/ql/test/2/extractor-tests/syntax_error/Test.ql
Normal file
4
python/ql/test/2/extractor-tests/syntax_error/Test.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import python
|
||||
|
||||
from SyntaxError s
|
||||
select s.toString()
|
||||
2
python/ql/test/2/extractor-tests/syntax_error/test.py
Normal file
2
python/ql/test/2/extractor-tests/syntax_error/test.py
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
Not python at all :(
|
||||
Reference in New Issue
Block a user