diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-05-18 09:37:31 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-05-18 09:37:31 +0100 |
commit | ca4398f924f39fc09a82fc890bab9c0c1d189d07 (patch) | |
tree | 4754fc62f472aab92d4d0c8ab1c79cb1739a4fe9 /summainlib_tests.py | |
parent | bf50667319b8886884471dd813ec0123edb6301a (diff) | |
download | summain-ca4398f924f39fc09a82fc890bab9c0c1d189d07.tar.gz |
Document sub-second timestamps in manpage.
Also fix code to work with microsecond precision.
Diffstat (limited to 'summainlib_tests.py')
-rw-r--r-- | summainlib_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/summainlib_tests.py b/summainlib_tests.py index a3dacd9..5b1b0f4 100644 --- a/summainlib_tests.py +++ b/summainlib_tests.py @@ -67,7 +67,7 @@ class FakeReadlink(object): class FilesystemObjectTests(unittest.TestCase): def setUp(self): - self.st = FakeStatResult(st_mtime=1262307723.12765, + self.st = FakeStatResult(st_mtime=1262307723.123456789, st_mode=stat.S_IFREG | 0644, st_ino=12765, st_dev=42, @@ -98,7 +98,7 @@ class FilesystemObjectTests(unittest.TestCase): def test_formats_mtime_correctly(self): self.assertEqual(self.new('foo')['Mtime'], - '2010-01-01 01:02:03.12765 +0000') + '2010-01-01 01:02:03.123457 +0000') def test_formats_mode_for_regular_file_correctly(self): self.assertEqual(self.new('foo')['Mode'], '100644') |