Added test skipping if os.link() is not available.

This commit is contained in:
Virgil Dupras 2011-01-01 16:22:38 +00:00
parent b5b27b141c
commit 2d423b2358
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
import os
import logging
from pytest import mark
from hsutil.testutil import eq_
from hsutil.testcase import TestCase
from hsutil import io
@ -115,6 +116,7 @@ class TCDupeGuru(TestCase):
add_fake_files_to_directories(app.directories, [f1, f2])
app.start_scanning() # no exception
@mark.skipif("not hasattr(os, 'link')")
def test_ignore_hardlink_matches(self):
# If the ignore_hardlink_matches option is set, don't match files hardlinking to the same
# inode.