summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45229: Remove test_main in many tests (GH-28405)Serhiy Storchaka2021-09-1961-485/+209
| | | | | | | | | Instead of explicitly enumerate test classes for run_unittest() use the unittest ability to discover tests. This also makes these tests discoverable and runnable with unittest. load_tests() can be used for dynamic generating tests and adding doctests. setUpModule(), tearDownModule() and addModuleCleanup() can be used for running code before and after all module tests.
* bpo-30856: Update TestResult early, without buffering in _Outcome (GH-28180)Serhiy Storchaka2021-09-197-65/+76
| | | | | | | TestResult methods addFailure(), addError(), addSkip() and addSubTest() are now called immediately after raising an exception in test or finishing a subtest. Previously they were called only after finishing the test clean up.
* bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)Serhiy Storchaka2021-09-183-1/+77
| | | | | | | | unittest.TestCase.debug() raises now a SkipTest if the class or the test method are decorated with the skipping decorator. Previously it only raised a SkipTest if the test method was decorated with other decorator in addition to the skipping decorator, or if SkipTest was explicitly raised in the test or setup methods.
* bpo-45198: __set_name__ documentation not clear about its usage with ↵Raymond Hettinger2021-09-182-30/+36
| | | | non-descriptor classes (GH-28439)
* bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420)Adam Schwalm2021-09-183-6/+15
|
* Fix minor typo in Doc/c-api/type.rst (GH-28432)Konstantin Popov2021-09-181-1/+1
| | | retreived-> retrieved
* bpo-45183: don't raise an exception when calling ↵Brett Cannon2021-09-173-2/+6
| | | | | zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435) This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).
* bpo-44640: Improve punctuation consistency in isinstance/issubclass error ↵wyz23x22021-09-171-2/+2
| | | | | messages (GH-27144) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660)Emmanuel Arias2021-09-171-1/+2
| | | | | Previous wording didn't explain the slightly unintuitive behavior. Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-45020: Freeze os, site, and codecs. (gh-28398)Eric Snow2021-09-179-31/+79
| | | https://bugs.python.org/issue45020
* Fix missing space with help for `-m compileall -o` (GH-27591)Daniel Hahler2021-09-171-3/+3
|
* bpo-42038: fix description of returned list of lines (GH-27529)andrei kulakov2021-09-171-6/+6
|
* [doc] Add a missing apostrophe in a code example in venv.rst (GH-28391)Arkaprabha Chakraborty2021-09-171-1/+1
|
* bpo-45116: Py_DEBUG ignores Py_ALWAYS_INLINE (GH-28419)Victor Stinner2021-09-172-1/+13
| | | | If the Py_DEBUG macro is defined, the Py_ALWAYS_INLINE macro does nothing.
* bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest ↵Serhiy Storchaka2021-09-171-9/+3
| | | | (GH-28422)
* bpo-45020: Fix build out of source tree (GH-28410)Victor Stinner2021-09-172-17/+23
| | | | | | * Makefile.pre.in: Add $(srcdir) when needed, remove it when it was used by mistake. * freeze_modules.py tool uses ./Programs/_freeze_module if the executable doesn't exist in the source tree.
* bpo-45231: update_file.py preserves end of line (GH-28411)Victor Stinner2021-09-171-1/+13
| | | | | | The update_file.py tool now preserves the end of line of the updated file. Fix the "make regen-frozen" command: it no longer changes the end of line of PCbuild/ files on Unix. Git changes the end of line depending on the platform.
* Remove compatibility check for Python versions below 2.2. (GH-28314)Omer Katz2021-09-171-5/+4
| | | | | | `os.path.realpath()` already exists in all our supported Python versions. There's no longer a need to check if it exists or not. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45212: Add a comment for time.sleep() in tests (GH-28414)Serhiy Storchaka2021-09-171-0/+1
| | | | Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-45116: Add the Py_ALWAYS_INLINE macro (GH-28390)Victor Stinner2021-09-173-0/+44
| | | | | Add the Py_ALWAYS_INLINE macro to ask the compiler to always inline a static inline function. The compiler can ignore it and decides to not inline the function.
* bpo-45219: Factor dictkey indexing (GH-28389)Mark Shannon2021-09-173-63/+106
|
* bpo-45217: adds note that `allow_no_value` in `configparser` is optional ↵Nikita Sobolev2021-09-171-1/+2
| | | | | (GH-28396) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45107: Make LOAD_METHOD_CLASS safer and faster, clean up comments (GH-28177)Ken Jin2021-09-172-15/+9
| | | | | * Improve comments * Check cls is a type, remove dict calculation
* bpo-45162: Remove many old deprecated unittest features (GH-28268)Serhiy Storchaka2021-09-1714-373/+61
| | | | | | | * "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-45203: fix compiler warnings (GH-28357)Ken Jin2021-09-171-0/+1
| | | Co-authored-by: Mark Shannon <mark@hotpy.org>
* bpo-5846: Fix deprecations for obsolete unittest functions and add tests. ↵Serhiy Storchaka2021-09-173-30/+69
| | | | (GH-28382)
* bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)Serhiy Storchaka2021-09-172-8/+9
|
* Fix typo and add a module prefix (GH-28401)Raymond Hettinger2021-09-171-2/+2
|
* bpo-45020: Drop the frozen .h files from the repo. (gh-28392)Eric Snow2021-09-1617-14455/+85
| | | | | The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change. (This is essentially an un-revert of gh-28375.) https://bugs.python.org/issue45020
* bpo-45225: use map function instead of genexpr in capwords (GH-28342)speedrun-program2021-09-162-1/+2
|
* bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when ↵Steve Dower2021-09-162-0/+6
| | | | building (GH-28393)
* 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.
* docs: correct references to __isub__ etc (GH-28297)David Hewitt2021-09-161-132/+132
|
* bpo-45020: Revert "Drop the frozen .h files from the repo." (gh-28380)Eric Snow2021-09-1615-69/+14417
| | | | | gh-28375 broke one of the buildbots. Until I figure out why, I'm rolling the change back. https://bugs.python.org/issue45020
* bpo-45155 : Default arguments for int.to_bytes(length=1, ↵Barry Warsaw2021-09-166-65/+127
| | | | | | | byteorder=sys.byteorder) (#28265) Add default arguments for int.to_bytes() and int.from_bytes() Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* bpo-45020: Drop the frozen .h files from the repo. (gh-28375)Eric Snow2021-09-1616-14437/+71
| | | | | The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change. https://bugs.python.org/issue45020
* bpo-39710: Remove Python 2-specific sentence from calendar documentation ↵Hubert Badocha2021-09-152-10/+3
| | | | (GH-26985)
* bpo-45019: Clean up the frozen __hello__ module. (gh-28374)Eric Snow2021-09-1512-50/+76
| | | | | 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-45089: Improve sqlite3 trace callback docs (GH-28238)Erlend Egeberg Aasland2021-09-151-5/+13
| | | | - Add link to str object and sqlite3 transaction control - Mention that exceptions are not propagated
* bpo-5846: Deprecate obsolete methods in `unittest` (GH-28299)Erlend Egeberg Aasland2021-09-154-4/+69
| | | Deprecate makeSuite, findTestCases, and getTestCaseNames. Scheduled for removal in Python 3.13.
* bpo-45193: News for IDLE PR_28343 (GH-28348)Terry Jan Reedy2021-09-151-0/+1
|
* bpo-45167: Fix deepcopying of GenericAlias (GH-28324)Serhiy Storchaka2021-09-153-5/+28
|
* 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-45188: Windows now regenerates frozen modules at the start of build ↵Steve Dower2021-09-157-68/+278
| | | | | | | instead of late (GH-28322) This will enable us to drop the frozen module header files from the repository. It does currently cause many source files to be built twice, which just takes more time. For whoever comes to fix this in the future, the files shared between freeze_module and pythoncore should be put into a static library that is consumed by both.