From: Zac Medico Date: Tue, 1 Jan 2013 04:57:07 +0000 (-0800) Subject: test_echangelog: sync year with UpdateChangeLog X-Git-Tag: v2.2.0_alpha150~67 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e5a09e99d8677f20f74d662da4e1f5c127650a7;p=portage.git test_echangelog: sync year with UpdateChangeLog The code has to be in sync in order to prevent erroneous test failures triggered by new year's day timezone differences. --- diff --git a/pym/portage/tests/repoman/test_echangelog.py b/pym/portage/tests/repoman/test_echangelog.py index 502aa7292..1640be268 100644 --- a/pym/portage/tests/repoman/test_echangelog.py +++ b/pym/portage/tests/repoman/test_echangelog.py @@ -1,13 +1,9 @@ # Copyright 2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -import datetime -import subprocess -import sys import tempfile import time -import portage from portage import os from portage import shutil from portage.tests import TestCase @@ -35,7 +31,7 @@ class RepomanEchangelogTestCase(TestCase): self.header_pkg = '# ChangeLog for %s/%s\n' % (self.cat, self.pkg) self.header_copyright = '# Copyright 1999-%s Gentoo Foundation; Distributed under the GPL v2\n' % \ - datetime.datetime.now().year + time.strftime('%Y', time.gmtime()) self.header_cvs = '# $Header: $\n' self.changelog = os.path.join(self.pkgdir, 'ChangeLog')