Skip to content

Commit ad9c980

Browse files
committed
Fix "No such method 'py_dec_ref' for invocant of type 'Inline::Python'"
No idea why this code path seems to be run when panda is running the tests but not when the tests are run manually. But the fix is obvious. Fixes GH #5 Thanks to Noel Maddy for reporting!
1 parent 5865f28 commit ad9c980

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Inline/Python.pm6

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ sub py_fetch_error(CArray[OpaquePointer])
193193
{ ... }
194194
native(&py_fetch_error);
195195

196+
method py_dec_ref(OpaquePointer $obj) {
197+
py_dec_ref($obj);
198+
}
199+
196200
my $objects = ObjectKeeper.new;
197201

198202
sub free_p6_object(Int $index) {

0 commit comments

Comments
 (0)