Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

ctypes_tests.test_commethods:test_basic_comtypes

def test_basic_comtypes():
        punk = ICreateTypeLib2()
        hr = CreateTypeLib2(0, "foobar.tlb", punk)
        assert hr == 0
    
>       assert 2 == punk.AddRef()

..\build\extra_tests\ctypes_tests\test_commethods.py:73: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Unbound COM method index 1: AddRef at 22877f2f1d8>
instance = <ICreateTypeLib2 object at 0x228056b40b0>
owner = <class 'extra_tests.ctypes_tests.test_commethods.ICreateTypeLib2'>

    def __get__(self, instance, owner):
        if instance is None:
            return self
>       return types.MethodType(self.func, instance, owner)
E       TypeError: method.__new__() takes 3 positional arguments but 4 were given

..\build\extra_tests\ctypes_tests\test_commethods.py:32: TypeError
builder: pypy-c-jit-win-x86-64 build #2497+
test: ctypes_tests.test_commethods:test_basic_comtypes