ports/sysutils/py-supervisor/files/patch-supervisor-tests-test_childutils.py
Ruslan Makhmatkhanov 18e6b74dc7 - update minimum required py-meld3 version
- use TEST_DEPENDS for tinderbox builds
- add OPTIONS for unit tests
- add regression-test target
- add the upstream patch to fix tests [1]

PR:		172851
Submitted by:	Kubilay Kocak <koobs.freebsd at gmail dot com>
Approved by:	Ildar Hizbulin <hizel at vyborg dot ru> (maintainer) [1]
Feature safe:	yes
2012-10-29 21:20:53 +00:00

11 lines
470 B
Python

--- supervisor/tests/test_childutils.py
+++ supervisor/tests/test_childutils.py
@@ -41,7 +41,7 @@ class ChildUtilsTests(unittest.TestCase):
def test_get_asctime(self):
from supervisor.childutils import get_asctime
- timestamp = time.mktime((2009, 1, 18, 22, 14, 7, 0, 0, 0))
+ timestamp = time.mktime((2009, 1, 18, 22, 14, 7, 0, 0, -1))
result = get_asctime(timestamp)
self.assertEqual(result, '2009-01-18 22:14:07,000')