aboutsummaryrefslogtreecommitdiffstats
path: root/tests/plugins.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/plugins.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/plugins.py')
-rw-r--r--tests/plugins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/plugins.py b/tests/plugins.py
index 6e72024..bbeed60 100644
--- a/tests/plugins.py
+++ b/tests/plugins.py
@@ -1,5 +1,5 @@
import traceback
-from util import MarkdownSyntaxError
+from .util import MarkdownSyntaxError
from nose.plugins import Plugin
from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin
@@ -73,7 +73,7 @@ or ""))
self.html.extend(['<span>FAILED (',
'failures=%d ' % len(result.failures),
'errors=%d' % len(result.errors)])
- for cls in result.errorClasses.keys():
+ for cls in list(result.errorClasses.keys()):
storage, label, isfail = result.errorClasses[cls]
if len(storage):
self.html.append(' %ss=%d' % (label, len(storage)))