1
0
python-dulwich/rmtree-ignore-errors.patch
Lukas Müller 1d93941c7c Accepting request 1000497 from home:mcepl:branches:devel:tools:scm
PLEASE, DO NOT SEND TO FACTORY YET, THIS NEEDS MORE TESTING!

- Adjust rmtree-ignore-errors patch according to upstream review.

OBS-URL: https://build.opensuse.org/request/show/1000497
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/python-dulwich?expand=0&rev=12
2022-08-31 21:12:39 +00:00

16 lines
662 B
Diff

---
dulwich/tests/test_porcelain.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/dulwich/tests/test_porcelain.py
+++ b/dulwich/tests/test_porcelain.py
@@ -271,7 +271,7 @@ ya6JVZCRbMXfdCy8lVPgtNQ6VlHaj8Wvnn2FLbWW
super(PorcelainGpgTestCase, self).setUp()
self.gpg_dir = os.path.join(self.test_dir, "gpg")
os.mkdir(self.gpg_dir, mode=0o700)
- self.addCleanup(shutil.rmtree, self.gpg_dir)
+ self.addCleanup(shutil.rmtree, self.gpg_dir, ignore_errors=True)
self._old_gnupghome = os.environ.get("GNUPGHOME")
os.environ["GNUPGHOME"] = self.gpg_dir
if self._old_gnupghome is None: