Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd773d40

Browse files
committed
win: GC after every TC to fixes appveyor hang runs
+ Fixed the hangs at `test_git:TestGit.test_handle_process_output()`.[travisci skip]
1 parent651a4be commitd773d40

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

‎git/test/lib/helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ def setUpClass(cls):
299299
Dynamically add a read-only repository to our actual type. This way
300300
each test type has its own repository
301301
"""
302+
importgc
303+
gc.collect()
302304
cls.rorepo=Repo(GIT_REPO)
303305

304306
@classmethod

‎git/test/performance/test_commit.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
classTestPerformance(TestBigRepoRW):
1919

20+
deftearDown(self):
21+
importgc
22+
gc.collect()
23+
2024
# ref with about 100 commits in its history
2125
ref_100='0.1.6'
2226

‎git/test/test_docs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212

1313
classTutorials(TestBase):
14+
15+
deftearDown(self):
16+
importgc
17+
gc.collect()
18+
1419
@with_rw_directory
1520
deftest_init_repo_object(self,rw_dir):
1621
# [1-test_init_repo_object]
@@ -64,7 +69,7 @@ def test_init_repo_object(self, rw_dir):
6469
assertrepo.head.ref==repo.heads.master# head is a symbolic reference pointing to master
6570
assertrepo.tags['0.3.5']==repo.tag('refs/tags/0.3.5')# you can access tags in various ways too
6671
assertrepo.refs.master==repo.heads['master']# .refs provides access to all refs, i.e. heads ...
67-
72+
6873
if'TRAVIS'notinos.environ:
6974
assertrepo.refs['origin/master']==repo.remotes.origin.refs.master# ... remotes ...
7075
assertrepo.refs['0.3.5']==repo.tags['0.3.5']# ... and tags

‎git/test/test_git.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ def setUpClass(cls):
4040
super(TestGit,cls).setUpClass()
4141
cls.git=Git(cls.rorepo.working_dir)
4242

43+
deftearDown(self):
44+
importgc
45+
gc.collect()
46+
4347
@patch.object(Git,'execute')
4448
deftest_call_process_calls_execute(self,git):
4549
git.return_value=''

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp