diff options
| author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-02 02:03:13 +0200 |
|---|---|---|
| committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-24 15:17:00 +0200 |
| commit | 758c29306f509008d80ee84443e04cf6655215ea (patch) | |
| tree | 22a69d63f150647e8f0263ba77bab6c76f9a58f8 /gitdb/test/db | |
| parent | 2ec8c99e52290b88a6816df7cef0eff8df81c0b7 (diff) | |
| download | gitdb-758c29306f509008d80ee84443e04cf6655215ea.tar.gz | |
feat(io): breaking API: retrofit Packers as context-managers!
+ Packers MUST be invoked inside `Withh...` blocks, or `_cursor` won't
exist!
+ Had to drop NotLazy for their hierarchy :-(
+ Count entrances/exits.
+ feat(util: add `rmtree()` for READ_ONLY files on Windows.
3-->2 Windows TCs now fail.
Diffstat (limited to 'gitdb/test/db')
| -rw-r--r-- | gitdb/test/db/test_pack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitdb/test/db/test_pack.py b/gitdb/test/db/test_pack.py index a901581..b361a59 100644 --- a/gitdb/test/db/test_pack.py +++ b/gitdb/test/db/test_pack.py @@ -51,7 +51,8 @@ class TestPackDB(TestDBBase): for sha in sha_list: pdb.info(sha) - pdb.stream(sha) + with pdb.stream(sha): + pass # END for each sha to query # test short finding - be a bit more brutal here |
