aboutsummaryrefslogtreecommitdiffstats
path: root/tests/util.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-12-14 13:31:41 -0500
committerWaylan Limberg <waylan@gmail.com>2012-12-14 13:31:41 -0500
commit9bcd7b8763627c64184b0bf147ec1830fde0a5dc (patch)
treec4ae05ca3e9bd76d9fb3120e0672bda29abec200 /tests/util.py
parenta974fd6e902ccc9e5b782707344d9af734b169b6 (diff)
downloadmarkdown-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.py6
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