core:WeakMethod test for reference error raised on python3