summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45162: Remove many old deprecated unittest features (GH-28268)Serhiy Storchaka2021-09-1710-323/+25
| | | | | | | * "fail*" and "assert*" aliases of TestCase methods. * Broken from start TestCase method assertDictContainsSubset(). * Ignored TestLoader.loadTestsFromModule() parameter use_load_tests. * Old alias _TextTestResult of TextTestResult.
* bpo-45187: Collect test_socket tests using unittest (GH-28317)Serhiy Storchaka2021-09-171-79/+5
| | | | | Previously, test classes ISOTPTest, J1939Test, BasicUDPLITETest and UDPLITETimeoutTest were not included in the list of tests and were not run by regrtest.
* bpo-5846: Fix deprecations for obsolete unittest functions and add tests. ↵Serhiy Storchaka2021-09-173-30/+69
| | | | (GH-28382)
* bpo-45225: use map function instead of genexpr in capwords (GH-28342)speedrun-program2021-09-161-1/+1
|
* bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361)Serhiy Storchaka2021-09-161-11/+8
| | | | | | tearDown() is not called if setUp() raises an exception (including SkipTest). addCleanup() should be used for guaranteed execution of the cleanup code.
* bpo-45155 : Default arguments for int.to_bytes(length=1, ↵Barry Warsaw2021-09-162-3/+23
| | | | | | | byteorder=sys.byteorder) (#28265) Add default arguments for int.to_bytes() and int.from_bytes() Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* bpo-39710: Remove Python 2-specific sentence from calendar documentation ↵Hubert Badocha2021-09-151-6/+2
| | | | (GH-26985)
* bpo-45019: Clean up the frozen __hello__ module. (gh-28374)Eric Snow2021-09-154-17/+32
| | | | | Here's one more small cleanup that should have been in PR gh-28319. We eliminate stdout side-effects from importing the frozen __hello__ module, and update tests accordingly. We also move the module's source file into Lib/ from Toos/freeze/flag.py. https://bugs.python.org/issue45019
* Fix typo in Lib/sqlite3/test/test_types.py (GH-28226)Konstantin Popov2021-09-151-1/+1
| | | | | preceeding -> preceding Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45019: Silence a warning in test_ctypes. (gh-28362)Eric Snow2021-09-151-2/+2
| | | | | This was missed in PR gh-28319. https://bugs.python.org/issue45019
* bpo-5846: Deprecate obsolete methods in `unittest` (GH-28299)Erlend Egeberg Aasland2021-09-152-4/+40
| | | Deprecate makeSuite, findTestCases, and getTestCaseNames. Scheduled for removal in Python 3.13.
* bpo-45167: Fix deepcopying of GenericAlias (GH-28324)Serhiy Storchaka2021-09-151-5/+25
|
* bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355)Victor Stinner2021-09-151-3/+11
| | | | | | test_gdb.test_pycfunction() now ignores gdb stderr, it no longer logs messages like: Function "meth_varargs" not defined.
* bpo-45205: Make test_compileall quiet (GH-28356)Victor Stinner2021-09-151-2/+4
| | | | | Make test_compileall quiet: test_year_2038_mtime_compilation() and test_larger_than_32_bit_times() of test_compileall no longer log "Compiling ..." messages to stdout.
* bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354)Victor Stinner2021-09-151-13/+14
| | | | | | test_pdb.test_checkline_is_not_executable() no longer writes output to stdout. Remove also unused variables 'f'.
* bpo-45204: Reduce verbosity of test_peg_generator (GH-28360)Pablo Galindo Salgado2021-09-151-10/+10
|
* bpo-45185: enables `TestEnumerations` in `test_ssl` (GH-28330)Nikita Sobolev2021-09-151-8/+10
|
* bpo-45020: Freeze some of the modules imported during startup. (gh-28335)Eric Snow2021-09-156-15/+24
| | | | | | | Doing this provides significant performance gains for runtime startup (~15% with all the imported modules frozen). We don't yet freeze all the imported modules because there are a few hiccups in the build systems we need to sort out first. (See bpo-45186 and bpo-45188.) Note that in PR GH-28320 we added a command-line flag (-X frozen_modules=[on|off]) that allows users to opt out of (or into) using frozen modules. The default is still "off" but we will change it to "on" as soon as we can do it in a way that does not cause contributors pain. https://bugs.python.org/issue45020
* bpo-45152: refactor the dis module to make handling of hasconst opcodes more ↵Irit Katriel2021-09-151-19/+35
| | | | generic (GH-28258)
* bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)Terry Jan Reedy2021-09-151-1/+1
| | | | | | The line that should not have been needed on macOS tk 8.6.8 but was, should not be a problem on Ubuntu, but is. It is not needed on macOS tk 8.6.11, installed with 3.10. Disable it but leave it for now in case some system needs it.
* bpo-45020: Don't test IDLE with frozen module. (GH-28344)Terry Jan Reedy2021-09-151-2/+2
| | | Otherwise, test would need special import.
* bpo-45020: Add -X frozen_modules=[on|off] to explicitly control use of ↵Eric Snow2021-09-147-104/+168
| | | | | | | frozen modules. (gh-28320) Currently we freeze several modules into the runtime. For each of these modules it is essential to bootstrapping the runtime that they be frozen. Any other stdlib module that we later freeze into the runtime is not essential. We can just as well import from the .py file. This PR lets users explicitly choose which should be used, with the new "-X frozen_modules=[on|off]" CLI flag. The default is "off" for now. https://bugs.python.org/issue45020
* bpo-45196: prevent unittest crash on address sanitizer builds (GH-28331)junyixie2021-09-142-3/+20
|
* closes bpo-45190: Update Unicode data to version 14.0.0. (GH-28336)Benjamin Peterson2021-09-141-2/+2
|
* bpo-45195: Fix test_readline.test_nonascii() (GH-28329)Victor Stinner2021-09-141-1/+3
| | | | Fix test_readline.test_nonascii(): sometimes, the newline character is not written at the end, so don't expect it in the output.
* bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300)Nikita Sobolev2021-09-142-6/+68
| | | | | | Fixes infinite loop on unittest.mock.seal() of mocks created by unittest.create_autospec(). Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-45168: change dis output to omit missing values rather than replacing ↵Irit Katriel2021-09-142-17/+24
| | | | them by their index (GH-28313)
* bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312)Hugo van Kemenade2021-09-131-1/+1
| | | importlib.find_loader should also be slated for 3.12 like the others in GH-25169 and as documented in https://docs.python.org/3.11/whatsnew/3.10.html#deprecated.
* bpo-45019: Do some cleanup related to frozen modules. (gh-28319)Eric Snow2021-09-132-28/+22
| | | | | There are a few things I missed in gh-27980. This is a follow-up that will make subsequent PRs cleaner. It includes fixes to tests and tools that reference the frozen modules. https://bugs.python.org/issue45019
* bpo-45173 Remove configparser deprecations (GH-28292)Hugo van Kemenade2021-09-132-72/+1
| | | | | | | In the configparser module, these have been deprecated since Python 3.2: * the SafeConfigParser class, * the filename property of the ParsingError class, * the readfp method of the ConfigParser class,
* bpo-45181: Simplify loading sqlite3 tests (GH-28304)Serhiy Storchaka2021-09-1310-146/+14
| | | | | Use unittest discover instead of manually enumerating all test modules and classes. Also add support for filtering them by pattern.
* bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305)Serhiy Storchaka2021-09-131-2/+2
| | | It is a decorator factory and should be always followed by "()".
* bpo-5846: Do not use obsolete unittest functions. (GH-28303)Serhiy Storchaka2021-09-1349-93/+80
| | | | Get rid of use of makeSuite() and findTestCases(). Also make test_math and test_threading_local discoverable.
* bpo-43413: Fix handling keyword arguments in subclasses of some buitin ↵Serhiy Storchaka2021-09-126-18/+190
| | | | | | | | classes (GH-26456) * Constructors of subclasses of some buitin classes (e.g. tuple, list, frozenset) no longer accept arbitrary keyword arguments. * Subclass of set can now define a __new__() method with additional keyword parameters without overriding also __init__().
* bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list ↵Serhiy Storchaka2021-09-112-8/+17
| | | | | | | (GH-28286) * Calling guess_all_extensions() with strict=False potentially mutated types_map_inv. * Mutating the result of guess_all_extensions() mutated types_map_inv.
* IDLE: adjust Python version in doc url for 3.10+ (GH-28228)giovanniwijaya2021-09-101-5/+7
| | | | | Expression 'python_version()[:3]' truncated '3.10.0' to '3.1' instead of '3.10'. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45144: use subTests in test_peepholer (GH-28247)Irit Katriel2021-09-101-43/+53
|
* bpo-25894: Always report skipped and failed subtests separately (GH-28082)Serhiy Storchaka2021-09-102-49/+185
| | | | | | * In default mode output separate characters for skipped and failed subtests. * In verbose mode output separate lines (including description) for skipped and failed subtests. * In verbose mode output test description for errors in test cleanup.
* bpo-40563: Support pathlike objects on dbm/shelve (GH-21849)Henry-Joseph Audéoud2021-09-107-44/+94
| | | | Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
* bpo-45017: move opcode-related logic from modulefinder to dis (GH-28246)Irit Katriel2021-09-093-26/+76
|
* bpo-44860: Update test_sysconfig for posix_user platlib (GH-28235)Victor Stinner2021-09-092-1/+12
| | | | Update test_sysconfig.test_user_similar() for the posix_user scheme: "platlib" doesn't use sys.platlibdir.
* bpo-20499: Rounding error in statistics.pvariance (GH-28230)Raymond Hettinger2021-09-092-56/+50
|
* bpo-38371: Remove deprecated `tkinter` split() method (GH-28237)Erlend Egeberg Aasland2021-09-081-53/+0
|
* bpo-45129 Remove deprecated reuse_address (GH-28207)Hugo van Kemenade2021-09-082-51/+2
| | | | | | | | Due to significant security concerns, the reuse_address parameter of asyncio.loop.create_datagram_endpoint, deprecated in Python 3.9, is now removed. This is because of the behavior of the socket option SO_REUSEADDR in UDP. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-19113: Remove unused test_errors from ctypes tests (GH-28008)andrei kulakov2021-09-081-9/+0
| | | This test was forever shadowed by another test method named `test_errors`.
* bpo-45121: Fix RecursionError when calling Protocol.__init__ from a ↵Yurii Karabas2021-09-082-0/+15
| | | | subclass' __init__ (GH-28206)
* bpo-45132 Remove deprecated __getitem__ methods (GH-28225)Hugo van Kemenade2021-09-086-123/+12
| | | | | Remove deprecated __getitem__ methods of xml.dom.pulldom.DOMEventStream, wsgiref.util.FileWrapper and fileinput.FileInput, deprecated since Python 3.9.
* Add more itertool recipes (GH-28165)Raymond Hettinger2021-09-071-0/+23
|
* bpo-45118: Fix regrtest second summary for re-run tests (GH-28183)Victor Stinner2021-09-071-4/+7
| | | | Fix regrtest second summary when using -w/--verbose2 command line option: lists re-run tests in the second test summary.
* bpo-45034: Fix how upper limit is formatted for `struct.pack("H", ...)` ↵Nikita Sobolev2021-09-071-0/+18
| | | | | | (GH-28178) Co-authored-by: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>