diff tests/test_fetch_command.py @ 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 c90cfa665b81
children ffccf0080e54
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):