Python: Add copy of extractor tests

These get to live next to the existing library and query tests, and are
run as part of both the Python 2 and Python 3 language tests.
This commit is contained in:
Taus
2024-04-15 12:22:07 +00:00
parent d5073df24c
commit e45f6e9b24
182 changed files with 13695 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
| is_int | is_int.py |
| unreachable_split | unreachable_split.py |

View File

@@ -0,0 +1,4 @@
import python
from Module m
select m.getName(), m.getFile().getAbsolutePath()

View File

@@ -0,0 +1,8 @@
# Handle `is`
def g(c):
if c is 3:
pass
if c is not 4:
pass

View File

@@ -0,0 +1,13 @@
#Don't crash looking dominators of post-return part of the expression.
def f(c):
return
if c:
x
else:
y
if c:
a
else:
b