[svn r37453] Changed test a bit to avoid issues on non-UNIX platforms.

--HG--
branch : trunk
This commit is contained in:
guido 2007-01-27 23:50:49 +01:00
parent b677355804
commit 37803778c9
1 changed files with 5 additions and 2 deletions

View File

@ -446,8 +446,11 @@ Spam, eggs and spam.
def test_nonstring_text():
expected = """\
/foo/bar.py
<foobar>
"""
txt = Rest(Paragraph(Text(py.path.local('/foo/bar.py')))).text()
class FooBar(object):
def __str__(self):
return '<foobar>'
txt = Rest(Paragraph(Text(FooBar()))).text()
assert txt == expected