New issue 298: pytester.TmpTestdir._run breaks on Python3.3 / Windows for unicode output https://bitbucket.org/hpk42/pytest/issue/298/pytestertmptestdir_run-breaks-on-python33
florian_bauer: Hi, I noticed that pytester.TmpTestdir._run does fail with a UnicodeDecodeError on Python 3, if a test uses the testdir fixture and generates non-ascii output. At least on my windows, sys.getfilesystemencoding() returns 'mbcs', not 'utf8'. Attached is a file with two testcases. test_unicode() fails for me, whereas test_unicode_patched shows my local workaround. Unfortunately I can't work on a proper patch right now, but the only change required is to replace the hard-coded 'utf8' encoding with the output of sys.getfilesystemencoding() _______________________________________________ pytest-commit mailing list pytest-commit@python.org http://mail.python.org/mailman/listinfo/pytest-commit