aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2010-12-08 23:47:00 +0100
committerOlivier Tilloy <olivier@tilloy.net>2010-12-08 23:47:00 +0100
commit491806576c61f95d63ccf4ca2929b24cba61a68e (patch)
tree8e76323916a1906544c2fdb3702308c9376cd3d5 /test
parent7a5d49413bef5d9866d401dee1b817ec941a4ef7 (diff)
downloadpyexiv2-491806576c61f95d63ccf4ca2929b24cba61a68e.tar.gz
Commented out a unit test which result depends on FS mount options.
Diffstat (limited to 'test')
-rw-r--r--test/metadata.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/metadata.py b/test/metadata.py
index 13aaf97..33121d4 100644
--- a/test/metadata.py
+++ b/test/metadata.py
@@ -152,7 +152,11 @@ class TestImageMetadata(unittest.TestCase):
stat2 = os.stat(self.pathname)
atime2 = round(stat2.st_atime)
mtime2 = round(stat2.st_mtime)
- self.failIfEqual(atime2, atime)
+ # It is not safe to assume that atime will have been modified when the
+ # file has been read, as it may depend on mount options (e.g. noatime,
+ # relatime).
+ # See discussion at http://bugs.launchpad.net/pyexiv2/+bug/624999.
+ #self.failIfEqual(atime2, atime)
self.failIfEqual(mtime2, mtime)
metadata.comment = 'Yesterday'
time.sleep(1.1)