aboutsummaryrefslogtreecommitdiff
path: root/test/test_examples.py
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-03 13:07:30 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-03 13:08:40 +0200
commit1243beff209eebadc917700e34542e3d12702120 (patch)
tree2371c8d2b5c6c0fcdfeb6d02532950ab41d12447 /test/test_examples.py
parent2ba345b16d869f4aa470d0f123ad619dbc41fd64 (diff)
Don't check st_nlink value for mkdir
Some filesystems don't track this for directories. Fixes: #180.
Diffstat (limited to 'test/test_examples.py')
-rwxr-xr-xtest/test_examples.py1
1 files changed, 1 insertions, 0 deletions
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)