mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34: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 os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from pytest import mark
|
||||||
from hsutil.testutil import eq_
|
from hsutil.testutil import eq_
|
||||||
from hsutil.testcase import TestCase
|
from hsutil.testcase import TestCase
|
||||||
from hsutil import io
|
from hsutil import io
|
||||||
@ -115,6 +116,7 @@ class TCDupeGuru(TestCase):
|
|||||||
add_fake_files_to_directories(app.directories, [f1, f2])
|
add_fake_files_to_directories(app.directories, [f1, f2])
|
||||||
app.start_scanning() # no exception
|
app.start_scanning() # no exception
|
||||||
|
|
||||||
|
@mark.skipif("not hasattr(os, 'link')")
|
||||||
def test_ignore_hardlink_matches(self):
|
def test_ignore_hardlink_matches(self):
|
||||||
# If the ignore_hardlink_matches option is set, don't match files hardlinking to the same
|
# If the ignore_hardlink_matches option is set, don't match files hardlinking to the same
|
||||||
# inode.
|
# inode.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user