| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -299,6 +299,8 @@ def setUpClass(cls): | |||
| 299 | 299 | Dynamically add a read-only repository to our actual type. This way | |
| 300 | 300 | each test type has its own repository | |
| 301 | 301 | """ | |
| 302 | + import gc | ||
| 303 | + gc.collect() | ||
| 302 | 304 | cls.rorepo = Repo(GIT_REPO) | |
| 303 | 305 | ||
| 304 | 306 | @classmethod | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,6 +17,10 @@ | |||
| 17 | 17 | ||
| 18 | 18 | class TestPerformance(TestBigRepoRW): | |
| 19 | 19 | ||
| 20 | + def tearDown(self): | ||
| 21 | + import gc | ||
| 22 | + gc.collect() | ||
| 23 | + | ||
| 20 | 24 | # ref with about 100 commits in its history | |
| 21 | 25 | ref_100 = '0.1.6' | |
| 22 | 26 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,11 @@ | |||
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | 13 | class Tutorials(TestBase): | |
| 14 | + | ||
| 15 | + def tearDown(self): | ||
| 16 | + import gc | ||
| 17 | + gc.collect() | ||
| 18 | + | ||
| 14 | 19 | @with_rw_directory | |
| 15 | 20 | def test_init_repo_object(self, rw_dir): | |
| 16 | 21 | # [1-test_init_repo_object] | |
@@ -64,7 +69,7 @@ def test_init_repo_object(self, rw_dir): | |||
| 64 | 69 | assert repo.head.ref == repo.heads.master # head is a symbolic reference pointing to master | |
| 65 | 70 | assert repo.tags['0.3.5'] == repo.tag('refs/tags/0.3.5') # you can access tags in various ways too | |
| 66 | 71 | assert repo.refs.master == repo.heads['master'] # .refs provides access to all refs, i.e. heads ... | |
| 67 | - | ||
| 72 | + | ||
| 68 | 73 | if 'TRAVIS' not in os.environ: | |
| 69 | 74 | assert repo.refs['origin/master'] == repo.remotes.origin.refs.master # ... remotes ... | |
| 70 | 75 | assert repo.refs['0.3.5'] == repo.tags['0.3.5'] # ... and tags | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,6 +40,10 @@ def setUpClass(cls): | |||
| 40 | 40 | super(TestGit, cls).setUpClass() | |
| 41 | 41 | cls.git = Git(cls.rorepo.working_dir) | |
| 42 | 42 | ||
| 43 | + def tearDown(self): | ||
| 44 | + import gc | ||
| 45 | + gc.collect() | ||
| 46 | + | ||
| 43 | 47 | @patch.object(Git, 'execute') | |
| 44 | 48 | def test_call_process_calls_execute(self, git): | |
| 45 | 49 | git.return_value = '' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments