forked from pool/python-dulwich
1d93941c7c
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
16 lines
662 B
Diff
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:
|