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/plugins.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/plugins.py')
-rw-r--r-- | tests/plugins.py | 4 |
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))) |