Python: Rewrite call-graph tests to be inline expectation (1/2)

This adds inline expectations, next commit will remove old annotations
code... but I thought it would be easier to review like this.
This commit is contained in:
Rasmus Wriedt Larsen
2022-06-24 16:00:40 +02:00
parent e8fdff7a3b
commit 4caaa3a396
6 changed files with 67 additions and 14 deletions

View File

@@ -25,13 +25,13 @@ class A(object):
a = A(42)
# calls:A.some_method
a.some_method()
a.some_method() # $ pt=A.some_method
# calls:A.some_staticmethod
a.some_staticmethod()
a.some_staticmethod() # $ pt=A.some_staticmethod
# calls:A.some_classmethod
a.some_classmethod()
a.some_classmethod() # $ pt=A.some_classmethod
# calls:A.some_staticmethod
A.some_staticmethod()
A.some_staticmethod() # $ pt=A.some_staticmethod
# calls:A.some_classmethod
A.some_classmethod()
A.some_classmethod() # $ pt=A.some_classmethod