From fbc96ca158193c3e692fd5876480cf4927da151a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 28 Jul 2011 10:59:25 -0400 Subject: Python 3.2 made some changes to the configparser which broke the testing framework. With a simple addition to our subclass (which we then make use of), this is an easy fix. --- tests/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/util.py') diff --git a/tests/util.py b/tests/util.py index a960104..6690eed 100644 --- a/tests/util.py +++ b/tests/util.py @@ -12,8 +12,8 @@ class CustomConfigParser(SafeConfigParser): return value.split(',') else: return [] - if value.lower() in ['yes', 'true', 'on']: + if value.lower() in ['yes', 'true', 'on', '1']: return True - if value.lower() in ['no', 'false', 'off']: + if value.lower() in ['no', 'false', 'off', '0']: return False return value -- cgit v1.2.3