Python: CG trace: Add examples of multiple calls on one line

There are currently 16 InvalidRecordedCall
This commit is contained in:
Rasmus Wriedt Larsen
2020-07-20 14:03:37 +02:00
parent 49a90c058d
commit a1c1ab080b
5 changed files with 560 additions and 3 deletions

View File

@@ -0,0 +1,37 @@
def one(*args, **kwargs):
print("one")
return 1
def two(*args, **kwargs):
print("two")
return 2
def three(*args, **kwargs):
print("three")
return 3
one(); two()
print("---")
one(); one()
print("---")
alias_one = one
alias_one(); two()
print("---")
three(one(), two())
print("---")
three(one(), two=two())
print("---")
def f():
print("f")
def g():
print("g")
return g
f()()