ソースを参照

cosmetic: reorder

Antoine Beaupré 9 年 前
コミット
1b29699403
1 ファイル変更1 行追加1 行削除
  1. 1 1
      borg/testsuite/convert.py

+ 1 - 1
borg/testsuite/convert.py

@@ -35,6 +35,7 @@ class ConversionTestCase(BaseTestCase):
         # throw some stuff in that repo, copied from `RepositoryTestCase.test1`_
         # throw some stuff in that repo, copied from `RepositoryTestCase.test1`_
         for x in range(100):
         for x in range(100):
             self.attic_repo.put(('%-32d' % x).encode('ascii'), b'SOMEDATA')
             self.attic_repo.put(('%-32d' % x).encode('ascii'), b'SOMEDATA')
+        self.attic_repo.close()
 
 
         # we use the repo dir for the created keyfile, because we do
         # we use the repo dir for the created keyfile, because we do
         # not want to clutter existing keyfiles
         # not want to clutter existing keyfiles
@@ -46,7 +47,6 @@ class ConversionTestCase(BaseTestCase):
         os.environ['BORG_KEYS_DIR'] = self.tmppath
         os.environ['BORG_KEYS_DIR'] = self.tmppath
         os.environ['ATTIC_PASSPHRASE'] = 'test'
         os.environ['ATTIC_PASSPHRASE'] = 'test'
         self.key = attic.key.KeyfileKey.create(self.attic_repo, self.MockArgs(self.tmppath))
         self.key = attic.key.KeyfileKey.create(self.attic_repo, self.MockArgs(self.tmppath))
-        self.attic_repo.close()
 
 
     def tearDown(self):
     def tearDown(self):
         shutil.rmtree(self.tmppath)
         shutil.rmtree(self.tmppath)