summaryrefslogtreecommitdiff
path: root/gen_tests.py
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2005-05-10 20:56:25 +0000
committerArch Librarian <arch@canonical.com>2005-05-10 20:56:25 +0000
commit38dff78e2fa1a67bc2c603f11f34334fa20ff191 (patch)
treeb6372b122ed523a2aa129ab0e71b0e57350075fd /gen_tests.py
parent13e3dd351613f1a546ed0a537c44428314307c0b (diff)
downloadpytz-38dff78e2fa1a67bc2c603f11f34334fa20ff191.tar.gz
fromutc method and twinned tzinfo's seems to allow avoi...
Author: zenzen Date: 2004-06-02 19:39:52 GMT fromutc method and twinned tzinfo's seems to allow avoiding localtime glitches at DST end
Diffstat (limited to 'gen_tests.py')
-rw-r--r--gen_tests.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/gen_tests.py b/gen_tests.py
index 74d5515..94305a8 100644
--- a/gen_tests.py
+++ b/gen_tests.py
@@ -1,14 +1,15 @@
#!/usr/bin/env python
# -*- coding: ascii -*-
'''
-$Id: gen_tests.py,v 1.3 2004/05/31 22:51:18 zenzen Exp $
+$Id: gen_tests.py,v 1.4 2004/06/02 19:39:53 zenzen Exp $
'''
-__rcs_id__ = '$Id: gen_tests.py,v 1.3 2004/05/31 22:51:18 zenzen Exp $'
-__version__ = '$Revision: 1.3 $'[11:-2]
+__rcs_id__ = '$Id: gen_tests.py,v 1.4 2004/06/02 19:39:53 zenzen Exp $'
+__version__ = '$Revision: 1.4 $'[11:-2]
-import os, os.path, popen2, re
+import os, os.path, popen2, re, sys
from gen_tzinfo import allzones
+import gen_tzinfo
zdump = os.path.abspath(os.path.join(
os.path.dirname(__file__), 'build','etc','zdump'
@@ -57,6 +58,9 @@ 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:
@@ -74,6 +78,7 @@ def test():
if int(is_dst) and not int(nis_dst):
tzname = ntzname
+ """
# Add leading 0 to single character day of month
if local_string[8] == ' ':
@@ -119,6 +124,10 @@ if __name__ == '__main__':
"""
if __name__ == '__main__':
+ try:
+ gen_tzinfo.target = sys.argv[1:]
+ except IndexError:
+ gen_tzinfo.target = None
main()
# vim: set filetype=python ts=4 sw=4 et