diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-11-29 19:11:21 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-06-06 14:27:14 +0200 |
commit | fa414e5874cb6e286eba70efdcb0d3168639ca88 (patch) | |
tree | ce9c056577fe2b808572303b34cb92d5f4e6598d /tests/test_GitModifier.py | |
parent | 284842fa47b91fc55fe512608cd338c884e4c135 (diff) |
gitmodifier: make the datetime object always have timezone
To be consistent with the date property and for easier compatibility
with git dates.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests/test_GitModifier.py')
-rw-r--r-- | tests/test_GitModifier.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_GitModifier.py b/tests/test_GitModifier.py index eee0e16..1a28c0a 100644 --- a/tests/test_GitModifier.py +++ b/tests/test_GitModifier.py @@ -54,13 +54,13 @@ def test_date(): '1 +0400' >>> modifier['date'] '1 +0400' - >>> modifier.datetime - datetime.datetime(1970, 1, 1, 0, 0, 1) + >>> modifier.datetime # doctest: +ELLIPSIS + datetime.datetime(1970, 1, 1, 4, 0, 1, tzinfo=<gbp.git.modifier.GitTz...>) >>> modifier.date = datetime.datetime(1970, 1, 1, 0, 0, 1) >>> modifier.date '1 +0000' - >>> modifier.datetime - datetime.datetime(1970, 1, 1, 0, 0, 1) + >>> modifier.datetime # doctest: +ELLIPSIS + datetime.datetime(1970, 1, 1, 0, 0, 1, tzinfo=<gbp.git.modifier.GitTz...>) >>> modifier.tz_offset '+0000' """ |