diff options
author | Stuart Bishop <stuart@stuartbishop.net> | 2021-09-26 20:15:18 +1000 |
---|---|---|
committer | Stuart Bishop <stuart@stuartbishop.net> | 2021-09-26 20:15:18 +1000 |
commit | 1404dd70d379d82ed14ff3ae4c71e5a5a5b2b148 (patch) | |
tree | 28decb6ea6f42ce4656ed85dd1029289216fe53d | |
parent | e9d8703d108bd47e7abc3f0c369c09b925a78ebc (diff) | |
download | pytz-git-1404dd70d379d82ed14ff3ae4c71e5a5a5b2b148.tar.gz |
Tell zdump to omit lines we don't want
-rw-r--r-- | gen_tests.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gen_tests.py b/gen_tests.py index 8e801b5..ef832fe 100644 --- a/gen_tests.py +++ b/gen_tests.py @@ -27,12 +27,9 @@ def main(): # the daterange we test against - zdump understands v2 format # files and will output historical records we can't cope with # otherwise. - command = [zdump, '-v', '-c', '1902,2038', zone] + command = [zdump, '-V', '-c', '1902,2038', zone] zd_out = subprocess.check_output(command, encoding="utf8") - # Skip bogus output on 64bit architectures, per Bug #213816 - lines = [ - line.strip() for line in zd_out.splitlines() - if not (line.strip().endswith('NULL') or '214748' in line)] + lines = [line.strip() for line in zd_out.splitlines()] for line in lines: print(line, file=datf) |