Skip to content

Commit 3f39648

Browse files
committed
Python: Remove duplicated test
1 parent 1a97e8f commit 3f39648

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

python/ql/test/experimental/dataflow/fieldflow/test_dict.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_dict_update():
4646
SINK(d.get("key")) # $ flow="SOURCE, l:-2 -> d.get(..)"
4747

4848
@expects(3) # $ unresolved_call=expects(..) unresolved_call=expects(..)(..)
49-
def test_setdefault():
49+
def test_dict_setdefault():
5050
d = {}
5151
x = d.setdefault("key", SOURCE)
5252
SINK(x) # $ flow="SOURCE, l:-1 -> x"
@@ -62,13 +62,6 @@ def test_dict_override():
6262
d["key"] = NONSOURCE
6363
SINK_F(d["key"])
6464

65-
66-
def test_dict_setdefault():
67-
d = {}
68-
d.setdefault("key", SOURCE)
69-
SINK(d["key"]) # $ flow="SOURCE, l:-1 -> d['key']"
70-
71-
7265
@expects(3) # $ unresolved_call=expects(..) unresolved_call=expects(..)(..)
7366
def test_dict_nonstring_key():
7467
d = {}

0 commit comments

Comments
 (0)