aboutsummaryrefslogtreecommitdiffstats
path: root/tests/util.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-08-20 14:32:09 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2014-08-20 14:32:09 -0400
commit1918cd26a16bf6051b3fcc791e1f260bad846c72 (patch)
treef213b5a2b87f9424a1a6391a768c3accb66ff810 /tests/util.py
parente7b6a33f0e3dd37d276a0c18dcbdc62e2c80ed98 (diff)
downloadmarkdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.tar.gz
markdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.tar.bz2
markdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.zip
Refactored test framework to use YAML config files rather than INI. Fixes #333.
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/util.py b/tests/util.py
deleted file mode 100644
index 0f416fb..0000000
--- a/tests/util.py
+++ /dev/null
@@ -1,23 +0,0 @@
-import sys
-if sys.version_info[0] == 3:
- from configparser import ConfigParser
-else:
- from ConfigParser import SafeConfigParser as ConfigParser
-
-class MarkdownSyntaxError(Exception):
- pass
-
-
-class CustomConfigParser(ConfigParser):
- def get(self, section, option):
- value = ConfigParser.get(self, section, option)
- if option == 'extensions':
- if len(value.strip()):
- return value.split(',')
- else:
- return []
- if value.lower() in ['yes', 'true', 'on', '1']:
- return True
- if value.lower() in ['no', 'false', 'off', '0']:
- return False
- return value