mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
Added test skipping if os.link() is not available.
This commit is contained in:
parent
b5b27b141c
commit
2d423b2358
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user