aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_exceptions.py')
-rw-r--r--test/test_exceptions.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_exceptions.py b/test/test_exceptions.py
index c136725..2772506 100644
--- a/test/test_exceptions.py
+++ b/test/test_exceptions.py
@@ -98,7 +98,7 @@ ${u'привет'}
foo()
except:
html_error = exceptions.html_error_template().render()
- assert "RuntimeError: test" in html_error
+ assert "RuntimeError: test" in str(html_error)
def test_py_utf8_html_error_template(self):
try:
@@ -178,8 +178,9 @@ ${foobar}
except:
t, v, tback = sys.exc_info()
- # blow away tracebaack info
- sys.exc_clear()
+ if not util.py3k:
+ # blow away tracebaack info
+ sys.exc_clear()
# and don't even send what we have.
html_error = exceptions.html_error_template().\