From 2d423b23582c50579641cb30df9ebc6111eecdfa Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sat, 1 Jan 2011 16:22:38 +0000 Subject: [PATCH] Added test skipping if os.link() is not available. --- core/tests/app_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/tests/app_test.py b/core/tests/app_test.py index caef52f7..e835d0d3 100644 --- a/core/tests/app_test.py +++ b/core/tests/app_test.py @@ -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.