From efa244322af59350056ffe3b93f7d4728d5ce61e Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 29 Apr 2011 00:59:06 -0400 Subject: The Testing Framework will now pass any non-reserved args set in test.cfg files as keyword arguments to Markdown for a given syntax test. As Markdown ignores unknown args, this should be safe and will allow testing of any newly added keywords without additional modification of the testing framework. --- tests/util.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/util.py') diff --git a/tests/util.py b/tests/util.py index aae87be..a960104 100644 --- a/tests/util.py +++ b/tests/util.py @@ -12,4 +12,8 @@ class CustomConfigParser(SafeConfigParser): return value.split(',') else: return [] + if value.lower() in ['yes', 'true', 'on']: + return True + if value.lower() in ['no', 'false', 'off']: + return False return value -- cgit v1.2.3