Remove not-found hardlink test (the OS prevents this from happening)

This commit is contained in:
Jacob Gillespie 2017-02-19 17:19:42 -06:00
parent 0c836f9369
commit ccd0f5d129

View file

@ -197,16 +197,6 @@ class SafetyTest(unittest.TestCase, _common.TempDirMixin):
finally:
os.unlink(fn)
@unittest.skipUnless(_common.HAVE_HARDLINK, u'platform lacks hardlink')
def test_broken_hardlink(self):
fn = os.path.join(_common.RSRC, b'brokenlink')
os.link('does_not_exist', fn)
try:
self.assertRaises(mediafile.UnreadableFileError,
mediafile.MediaFile, fn)
finally:
os.unlink(fn)
class SideEffectsTest(unittest.TestCase):
def setUp(self):
self.empty = os.path.join(_common.RSRC, b'empty.mp3')