| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Upload File : |
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<