diff options
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py new file mode 100644 index 0000000..aae87be --- /dev/null +++ b/tests/util.py @@ -0,0 +1,15 @@ +from ConfigParser import SafeConfigParser + +class MarkdownSyntaxError(Exception): + pass + + +class CustomConfigParser(SafeConfigParser): + def get(self, section, option): + value = SafeConfigParser.get(self, section, option) + if option == 'extensions': + if len(value.strip()): + return value.split(',') + else: + return [] + return value |