summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36763: Add _PyCoreConfig_SetArgv() (GH-13030)Victor Stinner2019-05-011-2/+1
| | | | | | | | | * Add 2 new config methods: * _PyCoreConfig_SetArgv() * _PyCoreConfig_SetWideArgv() * Add also an internal _PyCoreConfig_SetPyArgv() method. * Remove 'args' parameter from _PyCoreConfig_Read().
* Don't report deleted attributes in __dir__ (GH#10148)Mario Corchero2019-04-302-2/+13
| | | | | | When an attribute is deleted from a Mock, a sentinel is added rather than just deleting the attribute. This commit checks for such sentinels when returning the child mocks in the __dir__ method as users won't expect deleted attributes to appear when performing dir(mock).
* bpo-36742: Fixes handling of pre-normalization characters in urlsplit() ↵Steve Dower2019-04-302-4/+13
| | | | (GH-13017)
* bpo-25430: improve performance of IPNetwork.__contains__ (GH-1785)gescheit2019-04-301-2/+1
| | | make a compare in bit-operation manner.
* bpo-36018: Test idempotence. Test two methods against one-another. (GH-13021)Raymond Hettinger2019-04-301-0/+23
|
* bpo-36751: Deprecate getfullargspec and report positional-only args as ↵Pablo Galindo2019-04-303-61/+62
| | | | | | | | regular args (GH-13016) * bpo-36751: Deprecate getfullargspec and report positional-only args as regular args * Use inspect.signature in testhelpers
* bpo-36232: Improve error message on dbm.open() when the db doesn't exist ↵Marco Rougeth2019-04-291-1/+2
| | | | (GH-12060)
* bpo-1613500: Don't hardcode output file mode in fileinput.FileInput (GH-12986)Berker Peksag2019-04-292-2/+13
|
* bpo-36004: Add date.fromisocalendar (GH-11888)Paul Ganssle2019-04-292-0/+111
| | | | This commit implements the first version of date.fromisocalendar, the inverse function for date.isocalendar.
* bpo-35952: Fix test.pythoninfo when the compiler is missing (GH-13007)xdegaye2019-04-291-4/+11
|
* bpo-36540: PEP 570 -- Implementation (GH-12701)Pablo Galindo2019-04-2918-113/+633
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit contains the implementation of PEP570: Python positional-only parameters. * Update Grammar/Grammar with new typedarglist and varargslist * Regenerate grammar files * Update and regenerate AST related files * Update code object * Update marshal.c * Update compiler and symtable * Regenerate importlib files * Update callable objects * Implement positional-only args logic in ceval.c * Regenerate frozen data * Update standard library to account for positional-only args * Add test file for positional-only args * Update other test files to account for positional-only args * Add News entry * Update inspect module and related tests
* bpo-21536: On Android, C extensions are linked to libpython (GH-12989)xdegaye2019-04-291-0/+15
|
* bpo-36546: More tests: type preservation and equal inputs (#13000)Raymond Hettinger2019-04-291-12/+18
|
* bpo-36729: Delete unused text variable on tests. (GH-12959)Emmanuel Arias2019-04-291-4/+0
|
* bpo-32424: Improve test coverage for xml.etree.ElementTree (GH-12891)Gordon P. Hemsley2019-04-281-2/+85
| | | | * Fix typo in test_cyclic_gc subtest * Improve test coverage for xml.etree.ElementTree
* bpo-36025: Fix PyDate_FromTimestamp API (GH-11922)Paul Ganssle2019-04-271-0/+35
| | | | | | | | | | | | | In the process of converting the date.fromtimestamp function to use argument clinic in GH-8535, the C API for PyDate_FromTimestamp was inadvertently changed to expect a timestamp object rather than an argument tuple. This PR fixes this backwards-incompatible change by adding a new wrapper function for the C API function that unwraps the argument tuple and passes it to the underlying function. This PR also adds tests for both PyDate_FromTimestamp and PyDateTime_FromTimestamp to prevent any further regressions.
* Syntax highlight IDLE html doc code example. (GH-12981)Terry Jan Reedy2019-04-271-25/+23
| | | The new markup is currently ignored by IDLE's tk doc display.
* bpo-36719: regrtest closes explicitly WindowsLoadTracker (GH-12965)Victor Stinner2019-04-262-14/+29
| | | | Regrtest.finalize() now closes explicitly the WindowsLoadTracker instance.
* bpo-36719: Fix regrtest re-run (GH-12964)Victor Stinner2019-04-263-14/+35
| | | | | Properly handle a test which fail but then pass. Add test_rerun_success() unit test.
* bpo-36719: regrtest always detect uncollectable objects (GH-12951)Victor Stinner2019-04-264-69/+62
| | | | | | | regrtest now always detects uncollectable objects. Previously, the check was only enabled by --findleaks. The check now also works with -jN/--multiprocess N. --findleaks becomes a deprecated alias to --fail-env-changed.
* bpo-36669: add matmul support to weakref.proxy (GH-12932)Mark Dickinson2019-04-261-0/+15
|
* bpo-36725: Refactor regrtest multiprocessing code (GH-12961)Victor Stinner2019-04-264-152/+202
| | | | | | | | | | | | | | | | Rewrite run_tests_multiprocess() function as a new MultiprocessRunner class with multiple methods to better report errors and stop immediately when needed. Changes: * Worker processes are now killed immediately if tests are interrupted or if a test does crash (CHILD_ERROR): worker processes are killed. * Rewrite how errors in a worker thread are reported to the main thread. No longer ignore BaseException or parsing errors silently. * Remove 'finished' variable: use worker.is_alive() instead * Always compute omitted tests. Add Regrtest.get_executed() method.
* bpo-36725: regrtest: add TestResult type (GH-12960)Victor Stinner2019-04-268-208/+286
| | | | | | | | | | | | | | | * Add TestResult and MultiprocessResult types to ensure that results always have the same fields. * runtest() now handles KeyboardInterrupt * accumulate_result() and format_test_result() now takes a TestResult * cleanup_test_droppings() is now called by runtest() and mark the test as ENV_CHANGED if the test leaks support.TESTFN file. * runtest() now includes code "around" the test in the test timing * Add print_warning() in test.libregrtest.utils to standardize how libregrtest logs warnings to ease parsing the test output. * support.unload() is now called with abstest rather than test_name * Rename 'test' variable/parameter to 'test_name' * dash_R(): remove unused the_module parameter * Remove unused imports
* bpo-35920: Windows 10 ARM32 platform support (GH-11774)Paul Monson2019-04-2512-10/+94
|
* bpo-21536: C extensions are no longer linked to libpython (GH-12946)Victor Stinner2019-04-251-17/+2
| | | | | | | | | | | | | | On Unix, C extensions are no longer linked to libpython. It is now possible to load a C extension built using a shared library Python with a statically linked Python. When Python is embedded, libpython must not be loaded with RTLD_LOCAL, but RTLD_GLOBAL instead. Previously, using RTLD_LOCAL, it was already not possible to load C extensions which were not linked to libpython, like C extensions of the standard library built by the "*shared*" section of Modules/Setup. distutils, python-config and python-config.py have been modified.
* bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875)Victor Stinner2019-04-252-2/+7
| | | | | | | bpo-28552, bpo-7774: Fix distutils.sysconfig if sys.executable is None or an empty string: use os.getcwd() to initialize project_base. Fix also the distutils build command: don't use sys.executable if it's evaluated as false (None or empty string).
* bpo-36465: Fix test_regrtest on Windows (GH-12945)Victor Stinner2019-04-241-1/+1
| | | | | | Fix Py_DEBUG constant: check for sys.gettotalrefcount attribute rather than sys.getobjects. Update also SpecialBuilds.txt documentation.
* bpo-36465: Make release and debug ABI compatible (GH-12615)Victor Stinner2019-04-241-1/+1
| | | | | | | | | | | | | | Release build and debug build are now ABI compatible: the Py_DEBUG define no longer implies Py_TRACE_REFS define which introduces the only ABI incompatibility. A new "./configure --with-trace-refs" build option is now required to get Py_TRACE_REFS define which adds sys.getobjects() function and PYTHONDUMPREFS environment variable. Changes: * Add ./configure --with-trace-refs * Py_DEBUG no longer implies Py_TRACE_REFS
* bpo-36668: FIX reuse semaphore tracker for child processes (#5172)Thomas Moreau2019-04-242-10/+54
| | | Fix the multiprocessing.semaphore_tracker so it is reused by child processes.
* fix typo in gzip.py (GH-12928)Maximilian Nöthe2019-04-241-1/+1
|
* bpo-36454: Fix test_time.test_monotonic() (GH-12929)Victor Stinner2019-04-231-2/+3
| | | | | Change test_time.test_monotonic() to test only the lower bound of elapsed time after a sleep command rather than the upper bound. This prevents unnecessary test failures on slow buildbots. Patch by Victor Stinner.
* bpo-36018: Make "seed" into a keyword only argument (GH-12921)Raymond Hettinger2019-04-231-1/+1
|
* bpo-35904: Add missing fmean() entry to the summary table (GH-12919)Raymond Hettinger2019-04-231-0/+1
|
* Document that TestCase.assertCountEqual() can take iterables (GH-686)jkleint2019-04-231-3/+2
|
* bpo-36546: Add statistics.quantiles() (#12710)Raymond Hettinger2019-04-232-4/+195
|
* bpo-36679: Rename duplicate test_class_getitem function (GH-12892)Windson yang2019-04-221-1/+1
|
* bpo-36680: Rename duplicate test_source_from_cache_path_like_arg function ↵Windson yang2019-04-221-1/+1
| | | | (GH-12893)
* bpo-36681: Remove duplicate test_regression_29220 function (GH-12894)Windson yang2019-04-221-6/+0
|
* bpo-36682: Rename duplicate tests in test_sys_setprofile (GH-12895)Windson yang2019-04-221-2/+2
|
* bpo-36683: Rename duplicate test_io_encoding to test_pyio_encoding (GH-12896)Windson yang2019-04-221-1/+1
|
* bpo-36678: Rename duplicate tests in test_dataclasses (GH-12899)Windson yang2019-04-221-15/+3
|
* Fixes platform.win32_ver on non-Windows platforms (GH-12912)Steve Dower2019-04-221-12/+12
|
* bpo-29734: Cleanup test_getfinalpathname_handles test (GH-12908)Berker Peksag2019-04-221-21/+14
|
* bpo-36523: Add docstring to io.IOBase.writelines (GH-12683)Marcin Niemira2019-04-221-0/+5
|
* bpo-23078: Add support for {class,static}method to mock.create_autospec() ↵Xtreak2019-04-224-2/+79
| | | | | (GH-11613) Co-authored-by: Felipe <felipe.nospam.ochoa@gmail.com>
* bpo-36650: Fix handling of empty keyword args in C version of lru_cache. ↵Raymond Hettinger2019-04-201-0/+14
| | | | (GH-12881)
* bpo-30485: Change the prefix for defining the default namespace in ↵Stefan Behnel2019-04-182-7/+3
| | | | ElementPath from None to '' since there is existing code that uses that and it's more convenient to have an all-string-keys dict (e.g. when sorting items etc.). (#12860)
* bpo-36635: Add _testinternalcapi module (GH-12841)Victor Stinner2019-04-181-1/+1
| | | | | | Add a new _testinternalcapi module to test the internal C API. Move _Py_GetConfigsAsDict() function to the internal C API: _testembed now uses _testinternalcapi to access the function.
* bpo-36638: Fix WindowsLoadTracker exception on some Windows versions (GH-12849)Paul Monson2019-04-181-2/+7
|
* bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)Victor Stinner2019-04-172-2/+2
|