blob: 89ca60e81868f3addb508436d616ecbe18b4d8b7 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From b1a5c92dbd1d11f1afdc094fccea64de334d2783 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 30 Dec 2016 18:06:24 +0200
4Subject: [PATCH 3/4] tests: fix a race when deleting temporary directories
5
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006Upstream-Status: Submitted [https://github.com/rpm-software-management/librepo/pull/110]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 tests/python/tests/test_yum_repo_downloading.py | 2 +-
10 tests/python/tests/test_yum_repo_locating.py | 2 +-
11 2 files changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/tests/python/tests/test_yum_repo_downloading.py b/tests/python/tests/test_yum_repo_downloading.py
14index ad597dc..4a32519 100644
15--- a/tests/python/tests/test_yum_repo_downloading.py
16+++ b/tests/python/tests/test_yum_repo_downloading.py
17@@ -32,7 +32,7 @@ class TestCaseYumRepoDownloading(TestCaseWithFlask):
18 os.environ.pop('GNUPGHOME')
19 else:
20 os.environ['GNUPGHOME'] = self._gnupghome
21- shutil.rmtree(self.tmpdir)
22+ shutil.rmtree(self.tmpdir, True)
23
24 def test_download_repo_01(self):
25 h = librepo.Handle()
26diff --git a/tests/python/tests/test_yum_repo_locating.py b/tests/python/tests/test_yum_repo_locating.py
27index 8f4bea5..db4294c 100644
28--- a/tests/python/tests/test_yum_repo_locating.py
29+++ b/tests/python/tests/test_yum_repo_locating.py
30@@ -34,7 +34,7 @@ class TestCaseYumRepoLocating(TestCase):
31 os.environ.pop('GNUPGHOME')
32 else:
33 os.environ['GNUPGHOME'] = self._gnupghome
34- shutil.rmtree(self.tmpdir)
35+ shutil.rmtree(self.tmpdir, True)
36
37 def test_read_mirrorlist(self):
38 h = librepo.Handle()
39--
402.11.0
41