From c6ccea9099407788fc0479eb756f3bf67ef3284f Mon Sep 17 00:00:00 2001 From: Stuart Gathman <stuart@gathman.org> Date: Thu, 3 Mar 2011 05:58:50 +0000 Subject: [PATCH] Fix exception test case --- Milter/utils.py | 4 +++- setup.cfg | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Milter/utils.py b/Milter/utils.py index 5fa3f88..25f057d 100644 --- a/Milter/utils.py +++ b/Milter/utils.py @@ -65,7 +65,9 @@ def iniplist(ipaddr,iplist): >>> iniplist('2001:610:779:0:223:6cff:fe9a:9cf3',['127.0.0.1','172.20.1.0/24','2001:610:779::/48']) True >>> iniplist('2G01:610:779:0:223:6cff:fe9a:9cf3',['127.0.0.1','172.20.1.0/24','2001:610:779::/48']) - True + Traceback (most recent call last): + ... + ValueError: Invalid ip syntax:2G01:610:779:0:223:6cff:fe9a:9cf3 """ if ip4re.match(ipaddr): ipnum = addr2bin(ipaddr) diff --git a/setup.cfg b/setup.cfg index eda58bb..5d6c36c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bdist_rpm] -python=python2.4 +python=python2.6 doc_files=README NEWS TODO packager=Stuart D. Gathman <stuart@bmsi.com> release=1 -- GitLab