Avoid relying on PST for passing the testsuite.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 8 Apr 2010 01:22:09 +0000 (03:22 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 8 Apr 2010 01:22:09 +0000 (03:22 +0200)
dulwich/tests/test_objects.py

index feb21ce7f973459ee2ebe248a38f70866b3f670c..667be3d1e436406328b39be729ca308d344894fd 100644 (file)
@@ -288,7 +288,7 @@ class CommitParseTests(ShaFileCheckTests):
         self.assertEquals(['ab64bbdcc51b170d21588e5c5d391ee5c0c96dfd',
                            '4cffe90e0a41ad3f5190079d7c8f036bde29cbe6'],
                           c.parents)
-        expected_time = datetime.datetime(2007, 3, 24, 15, 1, 59)
+        expected_time = datetime.datetime(2007, 3, 24, 23, 1, 59).replace(tzinfo=None)
         self.assertEquals(expected_time,
                           datetime.datetime.fromtimestamp(c.commit_time))
         self.assertEquals(0, c.commit_timezone)
@@ -451,7 +451,7 @@ class TagParseTests(ShaFileCheckTests):
                           object_sha)
         self.assertEquals(Commit, object_type)
         self.assertEquals(datetime.datetime.fromtimestamp(x.tag_time),
-                          datetime.datetime(2007, 7, 1, 12, 54, 34))
+                          datetime.datetime(2007, 7, 1, 21, 54, 34, 0).replace(tzinfo=None))
         self.assertEquals(-25200, x.tag_timezone)
 
     def test_parse_no_tagger(self):