From 37803778c9c9b5544b5ebaef883236aea3907787 Mon Sep 17 00:00:00 2001 From: guido Date: Sat, 27 Jan 2007 23:50:49 +0100 Subject: [PATCH] [svn r37453] Changed test a bit to avoid issues on non-UNIX platforms. --HG-- branch : trunk --- py/rest/testing/test_rst.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py/rest/testing/test_rst.py b/py/rest/testing/test_rst.py index 0d680387b..f33d72ed4 100644 --- a/py/rest/testing/test_rst.py +++ b/py/rest/testing/test_rst.py @@ -446,8 +446,11 @@ Spam, eggs and spam. def test_nonstring_text(): expected = """\ -/foo/bar.py + """ - txt = Rest(Paragraph(Text(py.path.local('/foo/bar.py')))).text() + class FooBar(object): + def __str__(self): + return '' + txt = Rest(Paragraph(Text(FooBar()))).text() assert txt == expected