File: //lib/python3/dist-packages/twisted/python/test/__pycache__/test_tzhelper.cpython-38.pyc
U
W[� � @ s� d Z ddlmZ zddlmZ W n ek
r8 dZY nX ddlmZ ddlm Z m
Z
ddlmZ ddlm
Z d d
� Z
dd� Zd
d� ZG dd� de �ZdS )z(
Tests for L{twisted.python._tzhelper}.
� )�environ)�tzsetN)�FixedOffsetTimeZone)�TestCase�SkipTest)� timedelta)�mktimec C s2 z
t | �W S tk
r, td�| ���Y nX dS )z�
Call L{mktime_real}, and if it raises L{OverflowError}, catch it and raise
SkipTest instead.
@param t9: A time as a 9-item tuple.
@type t9: L{tuple}
@return: A timestamp.
@rtype: L{float}
z-Platform cannot construct time zone for {0!r}N)�mktime_real�
OverflowErrorr �format)Zt9� r �C/usr/lib/python3/dist-packages/twisted/python/test/test_tzhelper.pyr s
��r c C sH t dkrdS | dkr6z
td= W q> tk
r2 Y q>X n| td<