New submission from Serhiy Storchaka: Here is a patch which contains followed changes:
* Use bytes in test_exec_valid_coding(). Encoding instruction is ignored in strings. * Use non-ascii data in test_exec_valid_coding() to check that encoding is working. * Use explicit file encoding in test_file_parse(). * Use with statement for file in test_file_parse(). * Modify sys.path after opening file in test_file_parse() and restore before other cleanups. * Cleanup '.pyo' file in test_file_parse(). Test can ran in optimized mode. * Add msg parameter for better failure reporting in test_error_from_string(). * Use unittest.main(). ---------- components: Tests files: test_coding.patch keywords: patch messages: 191066 nosy: lemburg, loewis, nnorwitz, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Minor fixes for test_coding type: enhancement versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30569/test_coding.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18202> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com