summaryrefslogtreecommitdiff
path: root/tests/test_exceptions
diff options
context:
space:
mode:
authorianb <devnull@localhost>2008-03-25 17:06:48 +0000
committerianb <devnull@localhost>2008-03-25 17:06:48 +0000
commitd9f09b72dbda0d17e52b8feac4505eec4f532085 (patch)
tree4638a5d99df01ed528f0af5ac6e45c68292c0fea /tests/test_exceptions
parent3a8f11b1574cedb9e9f13f25cc377656ea0ff39b (diff)
downloadpaste-d9f09b72dbda0d17e52b8feac4505eec4f532085.tar.gz
Fix a couple tests that had some fragility
Diffstat (limited to 'tests/test_exceptions')
-rw-r--r--tests/test_exceptions/test_formatter.py2
-rw-r--r--tests/test_exceptions/test_httpexceptions.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_exceptions/test_formatter.py b/tests/test_exceptions/test_formatter.py
index f427896..01b4d04 100644
--- a/tests/test_exceptions/test_formatter.py
+++ b/tests/test_exceptions/test_formatter.py
@@ -153,7 +153,7 @@ def test_hide_after():
raise_error)
except:
result = format(f)
- print strip_html(result)
+ print strip_html(result).encode('ascii', 'replace')
assert 'AABB' in result
assert 'CCDD' not in result
assert 'raise_error' in result
diff --git a/tests/test_exceptions/test_httpexceptions.py b/tests/test_exceptions/test_httpexceptions.py
index 4ca64a4..5cb9319 100644
--- a/tests/test_exceptions/test_httpexceptions.py
+++ b/tests/test_exceptions/test_httpexceptions.py
@@ -76,7 +76,7 @@ def test_redapp():
'302 Found\n'
'This resource was found at /bing/foo;\n'
'you should be redirected automatically.\n')
- assert "text/plain" == header_value(saved[1][1],'content-type')
+ assert "text/plain; charset=utf8" == header_value(saved[1][1],'content-type')
assert "/bing/foo" == header_value(saved[1][1],'location')
def test_misc():