changeset 245:f8e9b74df403

Fix test_no_dates to not be TZ-sensitive.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 08 Apr 2009 18:29:03 +0200
parents 28d0ee605308
children 074f27c68818
files tests/test_fetch_command.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_fetch_command.py
+++ b/tests/test_fetch_command.py
@@ -6,12 +6,12 @@ from mercurial import ui
 
 import test_util
 
-
 class TestBasicRepoLayout(test_util.TestBase):
 
     def test_no_dates(self):
         repo = self._load_fixture_and_fetch('test_no_dates.svndump')
-        self.assertEqual(repo[0].date(), (-3600.0, -3600))
+        local_epoch = repo[0].date()
+        self.assertEqual(local_epoch[0], local_epoch[1])
         self.assertEqual(repo[1].date(), repo[2].date())
 
     def test_fresh_fetch_single_rev(self):