File: //usr/lib/python3/dist-packages/twisted/python/test/__pycache__/test_tzhelper.cpython-310.pyc
o
�b� � @ s� d Z ddlmZ zddlmZ W n ey dZY nw eZddlmZ ddlm Z
ddlmZ ddl
mZmZ d d
� Z dd� Zd
d� ZG dd� de�ZdS )z(
Tests for L{twisted.python._tzhelper}.
� )�environ)�tzsetN)� timedelta)�mktime)�FixedOffsetTimeZone)�SkipTest�TestCasec C s( zt | �W S ty td| ����w )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 )�mktime_real�
OverflowErrorr )�t9� r �C/usr/lib/python3/dist-packages/twisted/python/test/test_tzhelper.pyr s
�r c C sD t du rdS | du rztd= W n
ty Y nw | td<