diff --git a/python/ql/test/library-tests/frameworks/data/test.expected b/python/ql/test/library-tests/frameworks/data/test.expected index 591b5286b63..6c23dc276de 100644 --- a/python/ql/test/library-tests/frameworks/data/test.expected +++ b/python/ql/test/library-tests/frameworks/data/test.expected @@ -30,7 +30,7 @@ isSink | test.py:33:22:33:24 | ControlFlowNode for one | test-source | | test.py:33:27:33:29 | ControlFlowNode for two | test-source | | test.py:33:32:33:36 | ControlFlowNode for three | test-source | -| test.py:57:7:57:12 | ControlFlowNode for ArgPos | test-source | +| test.py:57:27:57:33 | ControlFlowNode for arg_pos | test-source | | test.py:66:17:66:20 | ControlFlowNode for arg1 | test-source | | test.py:66:23:66:26 | ControlFlowNode for arg2 | test-source | | test.py:66:34:66:43 | ControlFlowNode for namedThing | test-source | diff --git a/python/ql/test/library-tests/frameworks/data/test.py b/python/ql/test/library-tests/frameworks/data/test.py index 4064d1a808f..a037ddba9a2 100644 --- a/python/ql/test/library-tests/frameworks/data/test.py +++ b/python/ql/test/library-tests/frameworks/data/test.py @@ -54,7 +54,7 @@ val = inst.foo() from testlib import ArgPos -val = ArgPos.selfThing(arg, named=2) +arg_pos = ArgPos(); val = arg_pos.self_thing(arg, named=2); class SubClass (ArgPos.MyClass): def foo(self, arg, named=2, otherName=3): @@ -95,4 +95,4 @@ from foo1.bar import baz1 baz1(baz1) # no match, and that's the point. from foo2.bar import baz2 -baz2(baz2) # match \ No newline at end of file +baz2(baz2) # match diff --git a/python/ql/test/library-tests/frameworks/data/test.ql b/python/ql/test/library-tests/frameworks/data/test.ql index 4b585309a6a..cc056058514 100644 --- a/python/ql/test/library-tests/frameworks/data/test.ql +++ b/python/ql/test/library-tests/frameworks/data/test.ql @@ -44,7 +44,7 @@ class Sinks extends ModelInput::SinkModelCsv { "testlib;;Member[CallFilter].Member[arityOne].WithArity[1].Argument[any];test-source", // "testlib;;Member[CallFilter].Member[twoOrMore].WithArity[2..].Argument[0..];test-source", // // testing non-positional arguments - "testlib;;Member[ArgPos].Member[selfThing].Argument[self];test-source", // + "testlib;;Member[ArgPos].Instance.Member[self_thing].Argument[self];test-source", // // any argument "testlib;;Member[ArgPos].Member[anyParam].Argument[any];test-source", // "testlib;;Member[ArgPos].Member[anyNamed].Argument[any-named];test-source", //