diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/git/test_base.py | 1 | ||||
-rw-r--r-- | test/git/test_blob.py | 1 | ||||
-rw-r--r-- | test/git/test_repo.py | 9 | ||||
-rw-r--r-- | test/git/test_tag.py | 3 |
4 files changed, 5 insertions, 9 deletions
diff --git a/test/git/test_base.py b/test/git/test_base.py index 402cdba3..48d628c3 100644 --- a/test/git/test_base.py +++ b/test/git/test_base.py @@ -4,7 +4,6 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -import time from test.testlib import * from git import * import git.objects.base as base diff --git a/test/git/test_blob.py b/test/git/test_blob.py index 266f3a23..e151b3c8 100644 --- a/test/git/test_blob.py +++ b/test/git/test_blob.py @@ -4,7 +4,6 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -import time from test.testlib import * from git import * diff --git a/test/git/test_repo.py b/test/git/test_repo.py index e998ac6d..918e4769 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -5,7 +5,6 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os, sys -import time from test.testlib import * from git import * @@ -51,10 +50,10 @@ class TestRepo(object): assert_equal("672eca9b7f9e09c22dcb128c283e8c3c8d7697a4", c.tree.id) assert_equal("Tom Preston-Werner", c.author.name) assert_equal("tom@mojombo.com", c.author.email) - assert_equal(time.gmtime(1191999972), c.authored_date) + assert_equal(1191999972, c.authored_date) assert_equal("Tom Preston-Werner", c.committer.name) assert_equal("tom@mojombo.com", c.committer.email) - assert_equal(time.gmtime(1191999972), c.committed_date) + assert_equal(1191999972, c.committed_date) assert_equal("implement Grit#heads", c.message) c = commits[1] @@ -233,10 +232,10 @@ class TestRepo(object): assert_equal('634396b2f541a9f2d58b00be1a07f0c358b999b3', c.id) assert_equal('Tom Preston-Werner', c.author.name) assert_equal('tom@mojombo.com', c.author.email) - assert_equal(time.gmtime(1191997100), c.authored_date) + assert_equal(1191997100, c.authored_date) assert_equal('Tom Preston-Werner', c.committer.name) assert_equal('tom@mojombo.com', c.committer.email) - assert_equal(time.gmtime(1191997100), c.committed_date) + assert_equal(1191997100, c.committed_date) assert_equal('initial grit setup', c.message) # test the 'lines per commit' entries diff --git a/test/git/test_tag.py b/test/git/test_tag.py index 2ebb860a..8f12bf11 100644 --- a/test/git/test_tag.py +++ b/test/git/test_tag.py @@ -8,7 +8,6 @@ from mock import * from test.testlib import * from git import * from git.objects.tag import TagObject -import time class TestTag(object): def setup(self): @@ -26,7 +25,7 @@ class TestTag(object): assert isinstance( tagobj, TagObject ) assert tagobj.tag == tag.name assert isinstance( tagobj.tagger, Actor ) - assert isinstance( tagobj.tagged_date, time.struct_time ) + assert isinstance( tagobj.tagged_date, int ) assert tagobj.message # END if we have a tag object # END for tag in repo-tags |