We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 919e18e commit f6d0a5bCopy full SHA for f6d0a5b
test/test_examples.py
@@ -437,5 +437,11 @@ def assert_same_stats(name1, name2):
437
'st_gid', 'st_size'):
438
v1 = getattr(stat1, name)
439
v2 = getattr(stat2, name)
440
- assert v1 == v2, 'Attribute {} differs by {} ({} vs {})'.format(
+
441
+ # Known bug, cf. https://github.com/libfuse/pyfuse3/issues/57
442
+ if name.endswith('_ns'):
443
+ tolerance = 999_999 # <1 second
444
+ else:
445
+ tolerance = 0
446
+ assert abs(v1 - v2) <= tolerance, 'Attribute {} differs by {} ({} vs {})'.format(
447
name, v1 - v2, v1, v2)
0 commit comments