Python: CallGraph tests: remove rest of old annotations

This commit is contained in:
Rasmus Wriedt Larsen
2022-11-15 11:16:10 +01:00
parent 98bf3adc72
commit e886b53a94
2 changed files with 5 additions and 13 deletions

View File

@@ -4,17 +4,14 @@ class A(object):
print('A.__init__', arg)
self.arg = arg
# name:A.some_method
def some_method(self):
print('A.some_method', self)
@staticmethod
# name:A.some_staticmethod
def some_staticmethod():
print('A.some_staticmethod')
@classmethod
# name:A.some_classmethod
def some_classmethod(cls):
print('A.some_classmethod', cls)
@@ -24,14 +21,9 @@ class A(object):
# However, current test setup uses "callable" for naming, and expects things to be Function.
a = A(42)
# calls:A.some_method
a.some_method() # $ pt=A.some_method
# calls:A.some_staticmethod
a.some_staticmethod() # $ pt=A.some_staticmethod
# calls:A.some_classmethod
a.some_classmethod() # $ pt=A.some_classmethod
# calls:A.some_staticmethod
A.some_staticmethod() # $ pt=A.some_staticmethod
# calls:A.some_classmethod
A.some_classmethod() # $ pt=A.some_classmethod