aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-20 11:31:37 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-20 11:57:03 +0100
commit58473689b81d13300df2cd9aecf65fee97a4432e (patch)
tree5c1f0f9e8bf972b0b69e42d1f4e2e2884283b234 /tests
parentd3cb4db91a658037054312966771c3446cb2e4b5 (diff)
GitRepository: make garbage_collect more useful
Diffstat (limited to 'tests')
-rw-r--r--tests/doctests/test_GitRepository.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/doctests/test_GitRepository.py b/tests/doctests/test_GitRepository.py
index 348c560..cc3933a 100644
--- a/tests/doctests/test_GitRepository.py
+++ b/tests/doctests/test_GitRepository.py
@@ -823,7 +823,7 @@ def test_checkout():
def test_gc():
"""
- Test garbace collection
+ Test garbage collection
Methods tested:
- L{gbp.git.GitRepository.collect_garbage}
@@ -831,6 +831,8 @@ def test_gc():
>>> import gbp.git
>>> repo = gbp.git.GitRepository(dirs['repo'])
>>> repo.collect_garbage()
+ >>> repo.collect_garbage(prune=True)
+ >>> repo.collect_garbage(prune='all', aggressive=True)
"""