diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-07-28 10:59:25 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-07-28 10:59:25 -0400 |
commit | fbc96ca158193c3e692fd5876480cf4927da151a (patch) | |
tree | 0f2577fff65b0d10b72118f4980aa1be7d768384 /tests/util.py | |
parent | af74ff4dd4ca93f63cdf0a9d7dc8b1258f13fe1a (diff) | |
download | markdown-fbc96ca158193c3e692fd5876480cf4927da151a.tar.gz markdown-fbc96ca158193c3e692fd5876480cf4927da151a.tar.bz2 markdown-fbc96ca158193c3e692fd5876480cf4927da151a.zip |
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.
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |