(fixes issue85) correctly write non-ascii test output to junitxml files, refine some internal methods for it

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-04-27 15:15:43 +02:00
parent f6a04b92d2
commit c8d78177b9
7 changed files with 68 additions and 17 deletions

View File

@@ -199,3 +199,5 @@ def test_unicode_handling(testdir):
raise Exception(value)
excinfo = py.test.raises(Exception, f)
s = str(excinfo)
if sys.version_info[0] < 3:
u = unicode(excinfo)