File test-mktime-invalid-tm_isdst.patch of Package python-Twisted.24406
Index: Twisted-18.9.0/src/twisted/test/test_log.py
===================================================================
--- Twisted-18.9.0.orig/src/twisted/test/test_log.py
+++ Twisted-18.9.0/src/twisted/test/test_log.py
@@ -456,13 +456,13 @@ class FileObserverTests(LogPublisherTest
# Compute a POSIX timestamp for a certain date and time that is
# known to occur at a time when daylight saving time is in effect.
- localDaylightTuple = (2006, 6, 30, 0, 0, 0, 4, 181, 1)
+ localDaylightTuple = (2006, 6, 30, 0, 0, 0, 4, 181, -1)
daylight = time.mktime(localDaylightTuple)
# Compute a POSIX timestamp for a certain date and time that is
# known to occur at a time when daylight saving time is not in
# effect.
- localStandardTuple = (2007, 1, 31, 0, 0, 0, 2, 31, 0)
+ localStandardTuple = (2007, 1, 31, 0, 0, 0, 2, 31, -1)
standard = time.mktime(localStandardTuple)
self.assertEqual(