- 09 May, 2017 2 commits
-
-
Victor Stinner authored
Fix the following warning when test_inspect.py is compiled to test_inspect.pyc: test_inspect.py:505: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def spam_deref(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h): Replace also test.test_support import with test.support.
-
Xiang Zhang authored
-
- 05 May, 2017 7 commits
-
-
Victor Stinner authored
Don't stop the worker thread if a child failed.
-
Victor Stinner authored
support.unlink() now only ignores ENOENT and ENOTDIR, instead of ignoring any OSError exception.
-
Serhiy Storchaka authored
It was possible to get a core dump by using uninitialized _json objects. Now __new__ methods create initialized objects. __init__ methods are removed.. (cherry picked from commit 76a3e51a)
-
Victor Stinner authored
ExpatParser.parse() of xml.sax.xmlreader now closes the source: close the file object or the urllib object if source is a string (not an open file-like object). Add test_parse_close_source() unit test.
-
Victor Stinner authored
(cherry picked from commit 685cdb9a)
-
Benjamin Peterson authored
This reverts commit 0f4ed2cd (though, the tests are retained) and the followup 58ab4b57. See discussion on bpo-29094.
-
Victor Stinner authored
Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-opcode-targets: Python/opcode_targets.h * Add PYTHON_FOR_REGEN variable * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory
-
- 04 May, 2017 5 commits
-
-
Victor Stinner authored
Oops, I forgot that PermissionError was introduced in Python 3.3! Replace PermissionError with OSError and check on errno.
-
Victor Stinner authored
Add setUpModule() and tearDownModule() functions to test_site to save/restore sys.path at the module level to prevent warning if the user site directory is created, since site.addsitedir() modifies sys.path. (cherry picked from commit b85c1369)
-
Victor Stinner authored
DummyFTPServer now calls del_channel() on bind() error to prevent the following warning in TestIPv6Environment.setUpClass(): Warning -- asyncore.socket_map was modified by test_ftplib Before: {} After: {3: <test.test_ftplib.DummyFTPServer 127.0.0.1:0 at ...>}
-
Victor Stinner authored
Use EnvironGuard on BuildExtTestCase to save/restore os.environ, to fix the following warning: Warning -- os.environ was modified by test_distutils MSVCCompiler.initialize() of distutils.msvc9compiler modifies os.environ.
-
- 03 May, 2017 9 commits
-
-
Serhiy Storchaka authored
-
Victor Stinner authored
* Add Appveyor to Python 2.7 branch * Adapt AppVeyor config for Python 2 * Replace -j0 with -j2: -j0 is ignored on Python 2 * Replace --slowest with --slow * Remove --timeout option (it was introduced in Python 3)
-
Victor Stinner authored
Don't set cursorSetReturnsNone to DEFAULT_CURSOR_SET_RETURNS_NONE anymore if self->myenvobj is set. Fix a GCC warning on the strange indentation.
-
Victor Stinner authored
Backport the CHILD_ERROR status from master: a test is considered as failed if a worker process running a test exited with a code different than zero. Change also the output: write stdout and stderr of the child process after the test name, instead of writing it before. accumulate_result(): don't use time of CHILD_ERROR or INTERRUPTED results.
-
Victor Stinner authored
Use EnvironGuard on InstallTestCase and UtilTestCase. Backport fixes from master to prevent the following warning: Warning -- os.environ was modified by test_distutils
-
Victor Stinner authored
Ignore more generated files and test data downloaded by tests.
-
Victor Stinner authored
In PySlice_IndicesEx, clip the step to [-PY_SSIZE_T_MAX, PY_SSIZE_T_MAX] rather than [PY_SSIZE_T_MIN, PY_SSIZE_T_MAX]. (cherry picked from commit e6fc7401)
-
Victor Stinner authored
Buildbots don't run tests with -vv and so only log "xxx was modified by test_xxx" which is not enough to debug such random issue. In many cases, I'm unable to reproduce the warning and so unable to fix it. Always logging the value before and value after should help to debug such warning on buildbots. (cherry picked from commit ec4b1723) (cherry picked from commit 22982350235f8c5821b71661a5616423e1c7fcc0)
-
Victor Stinner authored
AsyncoreEchoServer of test_ssl now calls asyncore.close_all(ignore_all=True) to ensure that asyncore.socket_map is cleared once the test completes, even if ConnectionHandler was not correctly unregistered. Fix the following warning: Warning -- asyncore.socket_map was modified by test_ssl Before: {} After: {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler>} (cherry picked from commit 1dae7450)
-
- 02 May, 2017 6 commits
-
-
Victor Stinner authored
Don't test if .git/HEAD file exists, but only if the .git file (or directory) exists.
-
Victor Stinner authored
-
Victor Stinner authored
Use --short form of git hash. Use output from "git describe" for tag. Expected outputs: 1. previous hg 2. previous git 3. updated git Release (tagged) build: 1. Python 3.7.0a0 (v3.7.0a0:4def2a2901a5, ... 2. Python 3.7.0a0 (v3.7.0a0^0:05f53735, ... 3. Python 3.7.0a0 (v3.7.0a0:05f53735, ... Development build: 1. Python 3.7.0a0 (default:41df79263a11, ... 2. Python 3.7.0a0 (master:05f53735, ... 3. Python 3.7.0a0 (heads/master-dirty:05f53735, ... "dirty" means the working tree has uncommitted changes. See "git help describe" for more info. (cherry picked from commit 554626ad) (cherry picked from commit ed512cba78af211da4d83cbb7cc533c39176f374)
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
To unify running tests in Python 2.7 and Python 3, the test package can be run as a script. This is equivalent to running the test.regrtest module as a script.
-
Victor Stinner authored
Based on commit 5c4b0d06 by Ned Deily, which is based on original patches by Brett Cannon and Steve Dower. Remove also the private _Py_svnversion() function and SVNVERSION variable. Note: Py_SubversionRevision() and Py_SubversionShortBranch() are unchanged, they are part of the public API.
-
- 01 May, 2017 1 commit
-
-
Serhiy Storchaka authored
-
- 30 Apr, 2017 2 commits
-
-
Serhiy Storchaka authored
To simplify backports from Python 3, the test.test_support module was converted into a package and renamed to test.support. The test.script_helper module was moved into the test.support package. Names test.test_support and test.script_helper are left as aliases to test.support and test.support.script_helper.
-
csabella authored
(cherry picked from commit d9af73330f46d79cc0c56d369f65ebeec3cb5334)
-
- 28 Apr, 2017 3 commits
-
-
Serhiy Storchaka authored
(cherry picked from commit d1a1def7)
-
Victor Stinner authored
Backport enhancements from master, commits: * 9c4bfa66: "make tags": remove -t option of ctags. The option was kept for backward compatibility, but it was completly removed recently. Patch written by Stéphane Wirtel. * cf0ac6a7: Fix "make tags": set locale to C to call sort * 8a543c0b: `make tags` fixes (GH-717)
-
Victor Stinner authored
Ignore more generated files.
-
- 27 Apr, 2017 1 commit
-
- 26 Apr, 2017 1 commit
-
-
Dong-hee Na authored
-
- 23 Apr, 2017 1 commit
-
-
Serhiy Storchaka authored
(cherry picked from commit 85157cd8)
-
- 21 Apr, 2017 1 commit
-
- 20 Apr, 2017 1 commit
-
-
Berker Peksag authored
Reported by Sean Canavan on docs@p.o. (cherry picked from commit 8526fb74)
-