| 5416 | # TestDateTime tested most of this. datetime adds a twist to the |
| 5417 | # DST flag. |
| 5418 | class DST(tzinfo): |
| 5419 | def __init__(self, dstvalue): |
| 5420 | if isinstance(dstvalue, int): |
| 5421 | dstvalue = timedelta(minutes=dstvalue) |
| 5422 | self.dstvalue = dstvalue |
| 5423 | def dst(self, dt): |
| 5424 | return self.dstvalue |
| 5425 | |
| 5426 | cls = self.theclass |
| 5427 | for dstvalue, flag in (-33, 1), (33, 1), (0, 0), (None, -1): |
no outgoing calls