File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
python/ql/test/experimental/dataflow Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ import sys
2
+ import os
3
+
4
+ sys .path .append (os .path .dirname (os .path .dirname ((__file__ ))))
5
+ from testlib import *
6
+
1
7
# These are defined so that we can evaluate the test code.
2
8
NONSOURCE = "not a source"
3
9
SOURCE = "source"
@@ -37,12 +43,13 @@ def __init__(self):
37
43
def getObj (self ):
38
44
return self .obj
39
45
46
+ # Actual tests
40
47
41
48
def setFoo (obj , x ):
42
49
SINK_F (obj .foo )
43
50
obj .foo = x
44
51
45
-
52
+ @ expects ( 2 )
46
53
def test_example1 ():
47
54
myobj = MyObj ("OK" )
48
55
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ def check_tests_valid(testFile):
57
57
check_tests_valid ("variable-capture.nonlocal" )
58
58
check_tests_valid ("variable-capture.dict" )
59
59
check_tests_valid ("module-initialization.multiphase" )
60
+ check_tests_valid ("fieldflow.test" )
60
61
61
62
# The below will fail unless we use Python 3.10 or newer.
62
63
# check_tests_valid("match.test")
You can’t perform that action at this time.
0 commit comments