diff options
author | Waylan Limberg <waylan@gmail.com> | 2012-12-21 16:19:30 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2012-12-21 16:19:30 -0500 |
commit | dc7aedfe825b02bd2cb526c0aba9c421822a37d1 (patch) | |
tree | 53b70d78cef1857d86d8d1d2a406e832a2a7ac5f /tests/util.py | |
parent | d4ce5e1bbc4488747e3387811fa0fd8f5c5ac2e8 (diff) | |
download | python-markdown-tox.tar.gz |
tox now installs tests as a module. Still not running sytax tests. Package_data (in setup-tests.py) doesn't recursively search subdirs - need to do so manually.tox
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/util.py b/tests/util.py deleted file mode 100644 index bbf7aea..0000000 --- a/tests/util.py +++ /dev/null @@ -1,23 +0,0 @@ -import sys -if sys.version_info[0] == 3: - from configparser import SafeConfigParser -else: - 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 [] - if value.lower() in ['yes', 'true', 'on', '1']: - return True - if value.lower() in ['no', 'false', 'off', '0']: - return False - return value |