blob: c6f8f531f2713e0d39de1bb5aff989a5fa66b29c [file] [log] [blame]
Wenzel Jakob48548ea2016-01-17 22:36:44 +01001Rabbit is a parrot
Wenzel Jakob48548ea2016-01-17 22:36:44 +01002Rabbit is a parrot
3Polly is a parrot
Wenzel Jakob954b7932016-07-10 10:13:18 +02004Polly is a parrot
Wenzel Jakob48548ea2016-01-17 22:36:44 +01005Molly is a dog
Wenzel Jakob954b7932016-07-10 10:13:18 +02006Molly is a dog
7Woof!
Wenzel Jakob48548ea2016-01-17 22:36:44 +01008The following error is expected: Incompatible function arguments. The following argument types are supported:
Dean Moldovaned23dda2016-08-04 01:40:40 +02009 1. (arg0: example.Dog) -> None
Jason Rhinelander3f589372016-08-07 13:05:26 -040010 Invoked with: <example.Pet object at 0x7ffaf4b00db0>
Wenzel Jakob48548ea2016-01-17 22:36:44 +010011Callback function 1 called!
12False
13Callback function 2 called : Hello, x, True, 5
145
Ben Pritchard1b522462016-03-10 16:31:38 -050015Callback function 2 called : Hello, from, partial, object
16False
17Callback function 3 called : Partial object with one argument
18False
Wenzel Jakob48548ea2016-01-17 22:36:44 +010019func(43) = 44
Wenzel Jakob954b7932016-07-10 10:13:18 +020020func(43) = 44
Brad Harmon835fc062016-06-16 13:19:15 -050021func(number=43) = 44
Jason Rhinelander3f589372016-08-07 13:05:26 -040022### Payload @ 0x7ffdcee09c80 created via default constructor
23### Payload @ 0x7ffdcee09c88 created via copy constructor
24### Payload @ 0xb54500 created via move constructor
25### Payload @ 0x7ffdcee09c88 destroyed
26### Payload @ 0x7ffdcee09c80 destroyed
27### Payload @ 0xb54500 destroyed
28Payload instances not destroyed: 0
29Copy constructions: 1
30Move constructions: True
Wenzel Jakob954b7932016-07-10 10:13:18 +020031argument matches dummy_function
32eval(1) = 2
Wenzel Jakob8de04372016-08-18 11:18:12 +020033roundtrip (got None)..
Wenzel Jakob954b7932016-07-10 10:13:18 +020034roundtrip..
35argument matches dummy_function
36eval(1) = 2
37could not convert to a function pointer.
38eval(1) = 3
39could not convert to a function pointer.
40All OK!
41could not convert to a function pointer.
42All OK!
Dean Moldovaned23dda2016-08-04 01:40:40 +020043test_callback3(arg0: Callable[[int], int]) -> None
Jason Rhinelander3f589372016-08-07 13:05:26 -040044
Dean Moldovaned23dda2016-08-04 01:40:40 +020045test_callback4() -> Callable[[int], int]
Jason Rhinelander3f589372016-08-07 13:05:26 -040046