From 40547e5567970a7b86820a78cac90645598c6c29 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Fri, 27 Aug 2010 10:13:12 +0200 Subject: Fix a typo in the unit tests. --- test/metadata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/metadata.py') diff --git a/test/metadata.py b/test/metadata.py index 7816277..821a5e8 100644 --- a/test/metadata.py +++ b/test/metadata.py @@ -103,7 +103,7 @@ class TestImageMetadata(unittest.TestCase): metadata.write(preserve_timestamps=True) stat2 = os.stat(self.pathname) atime2 = round(stat2.st_atime) - mtime2 = round(stat2.st_atime) + mtime2 = round(stat2.st_mtime) self.failUnlessEqual(atime2, atime) self.failUnlessEqual(mtime2, mtime) @@ -118,7 +118,7 @@ class TestImageMetadata(unittest.TestCase): metadata.write() stat2 = os.stat(self.pathname) atime2 = round(stat2.st_atime) - mtime2 = round(stat2.st_atime) + mtime2 = round(stat2.st_mtime) self.failIfEqual(atime2, atime) self.failIfEqual(mtime2, mtime) metadata.comment = 'Yesterday' @@ -126,7 +126,7 @@ class TestImageMetadata(unittest.TestCase): metadata.write(preserve_timestamps=True) stat3 = os.stat(self.pathname) atime3 = round(stat3.st_atime) - mtime3 = round(stat3.st_atime) + mtime3 = round(stat3.st_mtime) self.failUnlessEqual(atime3, atime2) self.failUnlessEqual(mtime3, mtime2) -- cgit