diff options
author | Waylan Limberg <waylan@gmail.com> | 2012-12-14 13:31:41 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2012-12-14 13:31:41 -0500 |
commit | 9bcd7b8763627c64184b0bf147ec1830fde0a5dc (patch) | |
tree | c4ae05ca3e9bd76d9fb3120e0672bda29abec200 /tests/util.py | |
parent | a974fd6e902ccc9e5b782707344d9af734b169b6 (diff) | |
download | markdown-9bcd7b8763627c64184b0bf147ec1830fde0a5dc.tar.gz markdown-9bcd7b8763627c64184b0bf147ec1830fde0a5dc.tar.bz2 markdown-9bcd7b8763627c64184b0bf147ec1830fde0a5dc.zip |
Testing framework now runs on Python 2 & 3 unmodified.
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/util.py b/tests/util.py index 6690eed..bbf7aea 100644 --- a/tests/util.py +++ b/tests/util.py @@ -1,4 +1,8 @@ -from ConfigParser import SafeConfigParser +import sys +if sys.version_info[0] == 3: + from configparser import SafeConfigParser +else: + from ConfigParser import SafeConfigParser class MarkdownSyntaxError(Exception): pass |