| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ca385a5 commit 8bbcb26
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,6 @@ | |||
| 4 | 4 | """Tests of assorted deprecation warnings with no extra subtleties to check.""" | |
| 5 | 5 | ||
| 6 | 6 | import contextlib | |
| 7 | - import gc | ||
| 8 | 7 | import warnings | |
| 9 | 8 | ||
| 10 | 9 | import pytest | |
@@ -31,8 +30,7 @@ def commit(tmp_path): | |||
| 31 | 30 | repo = Repo.init(tmp_path) | |
| 32 | 31 | repo.index.add(["a.txt"]) | |
| 33 | 32 | yield repo.index.commit("Initial commit") | |
| 34 | - del repo | ||
| 35 | - gc.collect() | ||
| 33 | + repo.close() | ||
| 36 | 34 | ||
| 37 | 35 | ||
| 38 | 36 | @pytest.fixture | |
| Back | FazBrowse Home | New Git URL |
0 commit comments