mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Python: Accept more test changes
All are for the better 🎉
This commit is contained in:
@@ -338,9 +338,9 @@ class C:
|
||||
|
||||
@expects(2)
|
||||
def test_attribute_reference():
|
||||
SINK(C.a) #$ MISSING:flow="SOURCE, l:-4 -> C.a"
|
||||
SINK(C.a) # $ flow="SOURCE, l:-5 -> C.a"
|
||||
c = C()
|
||||
SINK(c.a) #$ MISSING:flow="SOURCE, l:-6 -> c.a"
|
||||
SINK(c.a) # $ MISSING: flow="SOURCE, l:-7 -> c.a"
|
||||
|
||||
# overriding __getattr__ should be tested by the class coverage tests
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ class Unsafe:
|
||||
def test_value_pattern():
|
||||
match SOURCE:
|
||||
case Unsafe.VALUE as x:
|
||||
SINK(x) #$ flow="SOURCE, l:-2 -> x" MISSING: flow="SOURCE, l:-5 -> x"
|
||||
SINK(x) #$ flow="SOURCE, l:-2 -> x" flow="SOURCE, l:-5 -> x"
|
||||
|
||||
@expects(2)
|
||||
def test_sequence_pattern_tuple():
|
||||
|
||||
Reference in New Issue
Block a user