Skip test3b_delete_tree_constraint if $HOME is a subdirectory of /tmp

Closes: https://gramps-project.org/bugs/view.php?id=12577
This commit is contained in:
IOhannes m zmölnig 2022-02-24 22:57:06 +01:00 committed by Nick Hall
parent d01deb2cc9
commit 1e95d8a6b5

View File

@ -175,6 +175,10 @@ class Test3(U.TestCase):
def test3b_delete_tree_constraint(self): def test3b_delete_tree_constraint(self):
if self.home: 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 err = None
try: try:
tu.delete_tree(self.home_junk) tu.delete_tree(self.home_junk)