From 1e95d8a6b5193d655d8caec1e6ab13628ad123db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 24 Feb 2022 22:57:06 +0100 Subject: [PATCH] Skip test3b_delete_tree_constraint if $HOME is a subdirectory of /tmp Closes: https://gramps-project.org/bugs/view.php?id=12577 --- gramps/test/test/test_util_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gramps/test/test/test_util_test.py b/gramps/test/test/test_util_test.py index e1dc348f3..2ec8c832c 100644 --- a/gramps/test/test/test_util_test.py +++ b/gramps/test/test/test_util_test.py @@ -175,6 +175,10 @@ class Test3(U.TestCase): def test3b_delete_tree_constraint(self): if self.home: + sep = os.path.sep + tmp = tempfile.gettempdir() + sep + if ((self.home + sep).startswith(tmp)): + self.skipTest("skipping delete_tree_constraint test") err = None try: tu.delete_tree(self.home_junk)