- 16 May, 2017 2 commits
-
-
Serhiy Storchaka authored
* Use explicit numbering for footnotes referred by explicit number. * Fix literal strings formatting in howto/urllib2.rst. * Add `:noindex:` to duplicated definition of list. * Update susp-ignored.csv for reference/expressions.rst. (cherry picked from commit d97b7dc9)
-
Brett Cannon authored
-
- 15 May, 2017 4 commits
-
-
grzgrzgrz3 authored
* bpo-30357 each test in test_thread waits until all spawn threads finish * bpo-30357 each test in test_thread waits until all spawn threads finish * bpo-30357: test_thread now uses threading_cleanup() (#1592) test_thread: setUp() now uses support.threading_setup() and support.threading_cleanup() to wait until threads complete to avoid random side effects on following tests. Co-Authored-By:
Victor Stinner <victor.stinner@gmail.com> * bpo-30357: test_thread now uses threading_cleanup() (#1592) test_thread: setUp() now uses support.threading_setup() and support.threading_cleanup() to wait until threads complete to avoid random side effects on following tests. Co-Authored-By:
Victor Stinner <victor.stinner@gmail.com>
-
Victor Stinner authored
(cherry picked from commit f25a8de8)
-
Serhiy Storchaka authored
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().
-
Xiang Zhang authored
-
- 13 May, 2017 4 commits
-
-
Zachary Ware authored
Build the 'suspicious' doc target, turn on warnings-as-errors on the docs, and always build the docs. This better matches master's doc build setup.
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
-
- 12 May, 2017 2 commits
-
-
Victor Stinner authored
Fix for bpo-6393: Python crashes on OSX when $LANG is set to some (but not all) invalid values due to an invalid result from nl_langinfo (cherry picked from commit 6d77e071)
-
Victor Stinner authored
Fix sysconfig.is_python_build() if Python is built with Visual Studio 2008 (VS 9.0).
-
- 11 May, 2017 1 commit
-
-
Victor Stinner authored
* bpo-30283: regrtest: backport test_coverage() * Add --coverage option, the option was already described in the doc * When coverage is used, regrtest now pass all options to runtest() and calls also accumulate_result() (as done when coverage is not used). * bpo-25260: Fix coverage on Windows: remove the list of ignored directories. * bpo-30283: regrtest: backport test_slow_interrupted() * Fix regrtest to report interrupted tests as omitted rather than failed. * bpo-25260: Fix coverage on Windows: remove the list of ignored directories. * bpo-30283: Fix test_regrtest on Visual Studio 2008 Skip Tools\buildbot\test.bat and PCbuild\rt.bat if Python was not compiled in PCbuild (but compiled in PC\VS9.0\ for example).
-
- 10 May, 2017 3 commits
-
-
Victor Stinner authored
Try to fix test_startfile's inability to clean up after itself in time. Patch by Jeremy Kloth. Fix the following support.rmtree() error while trying to remove the temporary working directory used by Python tests: WindowsError: [Error 32] The process cannot access the file because it is being used by another process: ... Original commit: 8a53dbeb
-
Xiang Zhang authored
-
Victor Stinner authored
[2.7] gitignore: add rules for the PC/ directory
-
- 09 May, 2017 5 commits
-
-
torsava authored
* bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash. (cherry picked from commit a1054c3b)
-
Victor Stinner authored
* regrtest: add --slowest alias to --slow * make buildbottest: add --slowest option * regrtest: add "- " prefix to --slowest output * regrtest: Fix an outdated comment * regrtest: replace PermissionError Replace PermissionError with OSError and check on exc.errno. PermissionError was added to Python 3.3. * regrtest: add -3 -tt options to run Python scripts * regrtest: backport --list-tests option * regrtest: backport "Tests result: xxx" summary * regrtest: backport total duration * regrtest: add timestamp to the progress * regrtest: describe previous test state * Add the state of the test: passed, failed, etc. * If a test took longer than 30 seconds, log its execution time * regrtest: -jN logs running workers * regrtest: mention if tests are run in parallel * regrtest: parallel mode is more verbose during wait Display running tests every 30 seconds if no test completed in the meanwhile. * test_regrtest: fix typo in SubprocessRun
-
Victor Stinner authored
* bpo-30283: regrtest: add --testdir option * bpo-30283: Backport _testcapi.raise_signal() Function used by test_regrtest to simulate an interrupted unit test. * bpo-30283: Backport test_regrtest from master
-
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 7 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)
-