summaryrefslogtreecommitdiff
path: root/tests/test_exceptions
diff options
context:
space:
mode:
authormaluke <devnull@localhost>2008-05-28 10:18:39 +0000
committermaluke <devnull@localhost>2008-05-28 10:18:39 +0000
commitc7650b9216fc51958661ac9776f8e5d92ad2a189 (patch)
treebecc4f0d7e5fbced474a8854a3bcdf6aed39aa4a /tests/test_exceptions
parent17d0f5861607738f25ee4bb119cbcea2245dec9d (diff)
downloadpaste-c7650b9216fc51958661ac9776f8e5d92ad2a189.tar.gz
Fixed test suite on Windows (also disabled CGI tests as they shouldn't even work)
Diffstat (limited to 'tests/test_exceptions')
-rw-r--r--tests/test_exceptions/test_formatter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_exceptions/test_formatter.py b/tests/test_exceptions/test_formatter.py
index 01b4d04..2fe4528 100644
--- a/tests/test_exceptions/test_formatter.py
+++ b/tests/test_exceptions/test_formatter.py
@@ -93,7 +93,7 @@ def test_trim():
except:
result = format(f, trim_source_paths=[(current, '.')])
assert current not in result
- assert '/test_formatter.py' in result
+ assert ('%stest_formatter.py' % os.sep) in result, ValueError(repr(result))
else:
assert 0
@@ -148,7 +148,7 @@ def test_hide_after():
# A little whitespace to keep this line out of the
# content part of the report
-
+
hide, 'reset',
raise_error)
except:
@@ -159,7 +159,7 @@ def test_hide_after():
assert 'raise_error' in result
else:
assert 0
-
+
def test_hide_before():
for f in formats:
try: