From 1243beff209eebadc917700e34542e3d12702120 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 3 Aug 2017 13:07:30 +0200 Subject: Don't check st_nlink value for mkdir Some filesystems don't track this for directories. Fixes: #180. --- test/test_examples.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test_examples.py') diff --git a/test/test_examples.py b/test/test_examples.py index 5234a7d..0a2f3fd 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -266,6 +266,7 @@ def tst_mkdir(mnt_dir): fstat = os.stat(fullname) assert stat.S_ISDIR(fstat.st_mode) assert os.listdir(fullname) == [] + # Some filesystem (e.g. BTRFS) don't track st_nlink for directories assert fstat.st_nlink in (1,2) assert dirname in os.listdir(mnt_dir) -- cgit v1.2.3