]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-30366: Backport tests for test.support. (#1582)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 15 May 2017 08:59:35 +0000 (11:59 +0300)
committerGitHub <noreply@github.com>
Mon, 15 May 2017 08:59:35 +0000 (11:59 +0300)
commiteb66897e875eecd78bcb9a330a819bca6e09e7a2
tree205fa4b23c4a34d516ae17578d3373056428d66e
parent982a17e02d99dcf6e4dff93110cff5ecc59247f5
[2.7] bpo-30366: Backport tests for test.support. (#1582)

Also backport new functions temp_dir() and python_is_optimized().
temp_cwd() now accepts None as a name (means using tempfile.mkdtemp).
check_syntax_error() now accepts arguments lineno and offset.
Use more specific error messages in get_attribute().
Lib/test/support/__init__.py
Lib/test/test_test_support.py [new file with mode: 0644]