summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Bishop <stuart@stuartbishop.net>2014-09-01 17:39:25 +0700
committerStuart Bishop <stuart@stuartbishop.net>2014-09-01 17:39:25 +0700
commit880f0956d1eb9b64d64786f4f53fdf0cbf8b00b4 (patch)
treebd36f4c2638c73d56f7abd96ed92a4399ff38254
parentb792df53cd59af2b2fba1b5e6ced26c443b7540c (diff)
downloadpytz-880f0956d1eb9b64d64786f4f53fdf0cbf8b00b4.tar.gz
Fix tests to cope with altered zdump outputrelease_2014.7
-rw-r--r--Makefile2
-rw-r--r--test_zdump.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ac023e7..a1f46f0 100644
--- a/Makefile
+++ b/Makefile
@@ -71,7 +71,7 @@ test: test_lazy test_tzinfo test_docs test_zdump
clean:
rm -f .stamp-*
- rm -rf build/*/*
+ rm -rf build/*/* zdump.out
make -C ${OLSON}/src clean
find . -name \*.pyc | xargs rm -f
diff --git a/test_zdump.py b/test_zdump.py
index 957423c..0a88788 100644
--- a/test_zdump.py
+++ b/test_zdump.py
@@ -30,7 +30,8 @@ def test_suite():
last_zone = None
test_class = None
zdump_line_re = re.compile(r'''(?x)
- ^([^\s]+) \s+ (.+) \s UT \s+ = \s+ (.+) \s ([^\s]+) \s+ isdst=(0|1)$
+ ^([^\s]+) \s+ (.+) \s UT \s+ = \s+ (.+) \s ([^\s]+) \s+
+ isdst=(0|1) \s+ gmtoff=[\-\d]+ \s*$
''')
for i in range(0, len(raw_data)):
line = raw_data[i]