From c0fb8da595b43ef7e17709199c5c97cc1cf35a1a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 14 Jan 2017 23:19:40 +0100 Subject: [PATCH] fix xattr test race condition, fixes #2047 --- borg/testsuite/xattr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/testsuite/xattr.py b/borg/testsuite/xattr.py index 5693c753e..db01a29a3 100644 --- a/borg/testsuite/xattr.py +++ b/borg/testsuite/xattr.py @@ -11,7 +11,7 @@ class XattrTestCase(BaseTestCase): def setUp(self): self.tmpfile = tempfile.NamedTemporaryFile() - self.symlink = os.path.join(os.path.dirname(self.tmpfile.name), 'symlink') + self.symlink = self.tmpfile.name + '.symlink' os.symlink(self.tmpfile.name, self.symlink) def tearDown(self):