MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_remote_refcount

Function test_remote_refcount

test/test_remote.py:264–269  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

262
263@utils.requires_refcount
264def test_remote_refcount(testrepo: Repository) -> None:
265 start = sys.getrefcount(testrepo)
266 remote = testrepo.remotes[0]
267 del remote
268 end = sys.getrefcount(testrepo)
269 assert start == end
270
271
272def test_fetch(emptyrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…