Просмотр исходного кода

Fix LFS status tests cleanup issue on Windows Python 3.14

Jelmer Vernooij 3 месяцев назад
Родитель
Сommit
f0801ed12d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      tests/compat/test_lfs.py

+ 3 - 3
tests/compat/test_lfs.py

@@ -359,7 +359,7 @@ class LFSStatusCompatTest(LFSCompatTestCase):
         # This should work without raising FilterError
         # This should work without raising FilterError
         # Before the fix, this would fail with:
         # Before the fix, this would fail with:
         # dulwich.filters.FilterError: Process filter smudge failed: error
         # dulwich.filters.FilterError: Process filter smudge failed: error
-        status = porcelain.status(repo_dir, untracked_files="no")
+        status = porcelain.status(repo, untracked_files="no")
 
 
         # Verify status shows clean working tree
         # Verify status shows clean working tree
         self.assertEqual(status.staged["add"], [])
         self.assertEqual(status.staged["add"], [])
@@ -393,7 +393,7 @@ class LFSStatusCompatTest(LFSCompatTestCase):
         repo = porcelain.open_repo(repo_dir)
         repo = porcelain.open_repo(repo_dir)
         self.addCleanup(repo.close)
         self.addCleanup(repo.close)
 
 
-        status = porcelain.status(repo_dir, untracked_files="no")
+        status = porcelain.status(repo, untracked_files="no")
 
 
         # File should be in unstaged changes
         # File should be in unstaged changes
         self.assertIn(b"test.bin", status.unstaged)
         self.assertIn(b"test.bin", status.unstaged)
@@ -421,7 +421,7 @@ class LFSStatusCompatTest(LFSCompatTestCase):
         repo = porcelain.open_repo(repo_dir)
         repo = porcelain.open_repo(repo_dir)
         self.addCleanup(repo.close)
         self.addCleanup(repo.close)
 
 
-        status = porcelain.status(repo_dir, untracked_files="no")
+        status = porcelain.status(repo, untracked_files="no")
 
 
         # All files should be clean
         # All files should be clean
         self.assertEqual(status.staged["add"], [])
         self.assertEqual(status.staged["add"], [])