Closed
Description
I initially thought this was a pytest bug: pytest-dev/pytest/issues/3293
Minimal example:
from pygit2 import Repository
class MyRepository(Repository):
def __init__(self, *args, **kwargs):
self.path # causes segfault
super().__init__(*args, **kwargs)
MyRepository('.')
self->repo
isn't initialized when the getter is called:
Lines 519 to 523 in 2d4c1f5
This will also show up if you try to step through Repository.__init__
in the PyCharm debugger when it calls repr
on self
.
Metadata
Metadata
Assignees
Labels
No labels