summaryrefslogtreecommitdiff
path: root/git/test/test_docs.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-09-25 18:08:16 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-09-26 13:37:16 +0200
commit51bf7cbe8216d9a1da723c59b6feece0b1a34589 (patch)
tree3d64fafd239f428717565c68db234f6db610c31c /git/test/test_docs.py
parent1210ec763e1935b95a3a909c61998fbd251b7575 (diff)
downloadgitpython-51bf7cbe8216d9a1da723c59b6feece0b1a34589.tar.gz
win: GC.collect on all TC.tearDown to fix appveyor hang runs
+ Fixed the hangs at `test_git:TestGit.test_handle_process_output()`. [travisci skip]
Diffstat (limited to 'git/test/test_docs.py')
-rw-r--r--git/test/test_docs.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/git/test/test_docs.py b/git/test/test_docs.py
index b297363d..2cd355b2 100644
--- a/git/test/test_docs.py
+++ b/git/test/test_docs.py
@@ -11,6 +11,11 @@ from gitdb.test.lib import with_rw_directory
class Tutorials(TestBase):
+
+ def tearDown(self):
+ import gc
+ gc.collect()
+
@with_rw_directory
def test_init_repo_object(self, rw_dir):
# [1-test_init_repo_object]
@@ -64,7 +69,7 @@ class Tutorials(TestBase):
assert repo.head.ref == repo.heads.master # head is a symbolic reference pointing to master
assert repo.tags['0.3.5'] == repo.tag('refs/tags/0.3.5') # you can access tags in various ways too
assert repo.refs.master == repo.heads['master'] # .refs provides access to all refs, i.e. heads ...
-
+
if 'TRAVIS' not in os.environ:
assert repo.refs['origin/master'] == repo.remotes.origin.refs.master # ... remotes ...
assert repo.refs['0.3.5'] == repo.tags['0.3.5'] # ... and tags