mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 09:34:23 +01:00
Fix test_hardlink_arrives
This commit is contained in:
parent
ccd0f5d129
commit
902b955696
1 changed files with 6 additions and 2 deletions
|
|
@ -145,8 +145,12 @@ class MoveTest(_common.TestCase):
|
||||||
def test_hardlink_arrives(self):
|
def test_hardlink_arrives(self):
|
||||||
self.i.move(hardlink=True)
|
self.i.move(hardlink=True)
|
||||||
self.assertExists(self.dest)
|
self.assertExists(self.dest)
|
||||||
self.assertTrue(os.path.islink(self.dest))
|
s1 = os.stat(self.path)
|
||||||
self.assertEqual(os.readlink(self.dest), self.path)
|
s2 = os.stat(self.dest)
|
||||||
|
self.assertTrue(
|
||||||
|
(s1[stat.ST_INO], s1[stat.ST_DEV]) == \
|
||||||
|
(s2[stat.ST_INO], s2[stat.ST_DEV])
|
||||||
|
)
|
||||||
|
|
||||||
@unittest.skipUnless(_common.HAVE_HARDLINK, "need hardlinks")
|
@unittest.skipUnless(_common.HAVE_HARDLINK, "need hardlinks")
|
||||||
def test_hardlink_does_not_depart(self):
|
def test_hardlink_does_not_depart(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue