]> arthur.barton.de Git - bup.git/commitdiff
test_index: don't create an extra writer
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 5 Dec 2021 20:32:14 +0000 (21:32 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Dec 2021 19:03:48 +0000 (13:03 -0600)
This was erroneously left over when changing to
context management, and my (new?) version of pytest
started warning on it.

Fixes: f26a6a9ec9d7 ("index.Writer.__del__: replace with context management")
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
test/int/test_index.py

index 51eab8534cf27b9a6ad56264653c22919855e3f5..c2425133396b8ff51de7aa0416c755dc89fbe581 100644 (file)
@@ -111,7 +111,6 @@ def test_index_dirty(tmpdir):
                 #w1.close()
                 WVPASS()
 
-                w2 = index.Writer(b'index2.tmp', ms2, tmax)
                 w2.add(b'/a/b/n/2', fs, meta_ofs2)
                 #w2.close()
                 WVPASS()