[New-bugs-announce] [issue18202] Minor fixes for test_coding

Serhiy Storchaka report at bugs.python.org
Thu Jun 13 10:03:07 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue18202>
_______________________________________


More information about the New-bugs-announce mailing list