Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pendulum/tz/zoneinfo/exceptions.py: 80%

10 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:35 +0000

1class ZoneinfoError(Exception): 

2 

3 pass 

4 

5 

6class InvalidZoneinfoFile(ZoneinfoError): 

7 

8 pass 

9 

10 

11class InvalidTimezone(ZoneinfoError): 

12 def __init__(self, name): 

13 super(InvalidTimezone, self).__init__('Invalid timezone "{}"'.format(name)) 

14 

15 

16class InvalidPosixSpec(ZoneinfoError): 

17 def __init__(self, spec): 

18 super(InvalidPosixSpec, self).__init__("Invalid POSIX spec: {}".format(spec))