summaryrefslogtreecommitdiff
path: root/gen_tests.py
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2005-05-10 20:56:37 +0000
committerArch Librarian <arch@canonical.com>2005-05-10 20:56:37 +0000
commit73180b4ce4b2676db00855bc59b704f99ab8a3c3 (patch)
tree29da85c8a64772e1cc857d310c117429a4b04417 /gen_tests.py
parent03806455737da1d5328f55dbba7cf402d6e72794 (diff)
downloadpytz-73180b4ce4b2676db00855bc59b704f99ab8a3c3.tar.gz
Remove the 'granularity 1 minute' restriction, which no...
Author: zenzen Date: 2004-06-02 23:18:27 GMT Remove the 'granularity 1 minute' restriction, which no longer applies to us. Libya time now passing tests
Diffstat (limited to 'gen_tests.py')
-rw-r--r--gen_tests.py28
1 files changed, 3 insertions, 25 deletions
diff --git a/gen_tests.py b/gen_tests.py
index 94305a8..984db5d 100644
--- a/gen_tests.py
+++ b/gen_tests.py
@@ -1,11 +1,11 @@
#!/usr/bin/env python
# -*- coding: ascii -*-
'''
-$Id: gen_tests.py,v 1.4 2004/06/02 19:39:53 zenzen Exp $
+$Id: gen_tests.py,v 1.5 2004/06/02 23:18:28 zenzen Exp $
'''
-__rcs_id__ = '$Id: gen_tests.py,v 1.4 2004/06/02 19:39:53 zenzen Exp $'
-__version__ = '$Revision: 1.4 $'[11:-2]
+__rcs_id__ = '$Id: gen_tests.py,v 1.5 2004/06/02 23:18:28 zenzen Exp $'
+__version__ = '$Revision: 1.5 $'[11:-2]
import os, os.path, popen2, re, sys
from gen_tzinfo import allzones
@@ -58,28 +58,6 @@ def test():
else:
raise RuntimeError, 'Dud line %r' % (line,)
- """
- We no longer need to support this behavior
-
- # Get the next line, so we can fix the timezone acronym
- # if necessary to match Python's end-of-dst behavior
- try:
- nline = lines[idx+1]
- except IndexError:
- nline = lines[idx-2]
- m = re.match(
- '^([^\s]+)\s+(.+\sUTC) \s+=\s+ (.+)\s([^\s]+) \s+isdst=(0|1)$',
- nline, re.X
- )
- if m:
- nzone, nutc_string, nlocal_string, ntzname, nis_dst = m.groups()
- else:
- raise RuntimeError, 'Dud line %r' % (nline,)
-
- if int(is_dst) and not int(nis_dst):
- tzname = ntzname
- """
-
# Add leading 0 to single character day of month
if local_string[8] == ' ':
local_string = local_string[:8] + '0' + local_string[9:]