Commit Graph

23123 Commits

Author SHA1 Message Date
Miss Islington (bot) 3b6dcb8630
Fix broken NEWS markup (GH-24110)
(cherry picked from commit cde988e893)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2021-01-05 00:18:43 -08:00
Miss Islington (bot) d05b470d6a
bpo-42508: Keep IDLE running on macOS (GH-23577) (#23670)
Remove obsolete workaround that prevented running files with
shortcuts when using new universal2 installers built on macOS 11.
Ignore buggy 2nd run_module_event call.
(cherry picked from commit 57e5113610)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-05 03:09:30 -05:00
Miss Islington (bot) 0ccac5ff58
bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)
Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed59bc)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-01-04 15:36:37 -08:00
Miss Islington (bot) f24ac45552
bpo-41837: Update macOS installer build to use OpenSSL 1.1.1i. (GH-24080) (#24084)
(cherry picked from commit 14097a2785)

Co-authored-by: Ned Deily <nad@python.org>
2021-01-04 05:27:15 -05:00
Serhiy Storchaka 82794cacc6
[3.8] [3.9] bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874). (GH-24077) (GH-24079)
(cherry picked from commit 1470edd613)
(cherry picked from commit b0ee2b492d)
2021-01-04 10:58:09 +02:00
Serhiy Storchaka 6dffa67b98
[3.8] bpo-26407: Do not mask errors in csv. (GH-20536) (GH-24021)
Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in csv.reader(), csv.writer.writerow() and
csv.writer.writerows().
(cherry picked from commit c88239f864)
2021-01-01 19:42:23 +02:00
Serhiy Storchaka b863607d30
[3.8] bpo-39068: Fix race condition in base64 (GH-17627) (GH-24022)
There was a race condition in base64 in lazy initialization of multiple globals.
(cherry picked from commit 9655434cca)

Co-authored-by: Brandon Stansbury <brandonrstansbury@gmail.com>
2021-01-01 19:41:49 +02:00
Serhiy Storchaka 187785e2fa
[3.8] bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766) (GH-24023)
Return None instead of 1.
(cherry picked from commit 2bc343417a)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-01 19:40:38 +02:00
Serhiy Storchaka e3a9adba32
[3.8] bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968) (GH-24026)
Objects which belong to different Tcl interpreters are now always
different, even if they have the same name.
(cherry picked from commit 1df56bc059)
2021-01-01 19:39:36 +02:00
Miss Islington (bot) 381f3e4bfd
bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)
(cherry picked from commit ec3165320e)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-01-01 06:40:18 -08:00
Miss Islington (bot) 741f22df24
Allow / character in username,password fields in _PROXY envvars. (GH-23973) (#23992)
(cherry picked from commit 030a713183)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
2020-12-29 05:15:14 -08:00
Miss Islington (bot) 4d840e428a
[3.8] bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281). (GH-23784) (GH-23787)
(cherry picked from commit a26215db11)
(cherry picked from commit 28bf6ab61f)
2020-12-26 00:35:46 +02:00
Miss Islington (bot) d5aadb2854
bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)
When the modern text= spelling of the universal_newlines= parameter was added
for Python 3.7, check_output's special case around input=None was overlooked.
So it behaved differently with universal_newlines=True vs text=True.  This
reconciles the behavior to be consistent and adds a test to guarantee it.

Also clarifies the existing check_output documentation.

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
(cherry picked from commit 64abf37344)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2020-12-24 21:18:13 -08:00
Miss Islington (bot) efd64c8ea0
closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)
On Fedora 31 gdb is using python 3.7.9, calling `proxyval` on an instance with a dictionary fails because of the `dict.iteritems` usage. This PR changes the code to be compatible with py2 and py3.

This changed seemed small enough to not need an issue and news blurb, if one is required please let me know.

Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit b57ada98da)

Co-authored-by: Augusto Hack <hack.augusto@gmail.com>
2020-12-24 09:34:28 -08:00
Łukasz Langa 6503f05dd5
Python 3.8.7 2020-12-21 17:25:24 +01:00
Miss Islington (bot) 81f706d2db
bpo-42669: Document that `except` rejects nested tuples (GH-23822) (GH-23871)
In Python 2, it was possible to use `except` with a nested tuple, and occasionally natural.  For example, `zope.formlib.interfaces.InputErrors` is a tuple of several exception classes, and one might reasonably think to do something like this:

    try:
        self.getInputValue()
        return True
    except (InputErrors, SomethingElse):
        return False

As of Python 3.0, this raises `TypeError: catching classes that do not inherit from BaseException is not allowed` instead: one must instead either break it up into multiple `except` clauses or flatten the tuple.  However, the reference documentation was never updated to match this new restriction.  Make it clear that the definition is no longer recursive.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit c95f8bc270)

Co-authored-by: Colin Watson <cjwatson@debian.org>

Co-authored-by: Colin Watson <cjwatson@debian.org>
2020-12-20 16:18:40 -05:00
Miss Islington (bot) b01091a3e7
bpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using configure (GH-23708)
Now all platforms use a value for the "EXT_SUFFIX" build variable derived
from SOABI (for instance in FreeBSD, "EXT_SUFFIX" is now ".cpython-310d.so"
instead of ".so"). Previously only Linux, Mac and VxWorks were using a value
for "EXT_SUFFIX" that included "SOABI".

Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
(cherry picked from commit a44ce6c9f7)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
2020-12-19 19:17:42 -08:00
Serhiy Storchaka 80c445cafb
[3.8] bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781) (GH-23854)
* Tkinter functions and constructors which need a default root window
  raise now RuntimeError with descriptive message instead of obscure
  AttributeError or NameError if it is not created yet or cannot
  be created automatically.

* Add tests for all functions which use default root window.

* Fix import in the pynche script.

(cherry picked from commit 3d569fd6dc)
2020-12-19 16:38:37 +02:00
Miss Islington (bot) d21d29ab5b
[3.8] bpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23835)
Up until now, the `multiprocessing.pool.ThreadPool` class has gone
undocumented, despite being a public class in multiprocessing that is
included in `multiprocessing.pool.__all__`.
(cherry picked from commit 84ebcf271a)


Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
2020-12-18 10:37:57 -08:00
Miss Islington (bot) a3dec9d8ec
bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461)
(cherry picked from commit 17ef4319a3)

Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
2020-12-18 09:45:24 -08:00
Miss Islington (bot) 829272e67b
bpo-42613: Fix freeze.py config directory (GH-23792)
Fix freeze.py tool to use the prope config and library directories.
(cherry picked from commit 1c653f17cb)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-12-17 03:40:26 -08:00
Miss Islington (bot) 4f65907f38
bpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23389)
Same as FreeBSD, file descriptors in /dev/fd id from 0 to 63.
(cherry picked from commit 13b865f0e1)

Co-authored-by: David CARLIER <devnexen@gmail.com>

Co-authored-by: David CARLIER <devnexen@gmail.com>
2020-12-17 12:16:00 +01:00
Miss Islington (bot) d549d0b557
bpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-22654)
(cherry picked from commit 8374d2ee15)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
2020-12-16 09:57:23 -08:00
Miss Islington (bot) 0a24a57888
bpo-42644: Validate values in logging.disable() (GH-23786)
* bpo-42644: Validate values in logging.disable()

Technically make the value of manager a property that checks and convert
values assigned to it properly. This has the side effect of making
`logging.disable` also accept strings representing the various level of
warnings.

We want to validate the type of the disable attribute at assignment
time, as it is later compared to other levels when emitting warnings and
would generate a `TypeError: '>=' not supported between ....` in a
different part of the code base, which can make it difficult to track
down.

When assigned an incorrect value; it will raise a TypeError when the
wrong type, or ValueError if an invalid str.

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit b32d8b4f9b)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
2020-12-16 02:10:32 -08:00
Miss Islington (bot) 13d40c2a41
bpo-40219: Lowered ttk LabeledScale dummy (GH-21467)
(cherry picked from commit b9ced83cf4)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2020-12-15 12:02:03 -08:00
Miss Islington (bot) 06bfd033e8
bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)
Add positional only args support to lib2to3 pgen2.

This adds 3.8's PEP-570 support to lib2to3's pgen2.  lib2to3, while
being deprecated is still used by things to parse all versions of Python
code today.  We need it to support parsing modern 3.8 and 3.9 constructs.

Also add tests for complex *expr and **expr's.
(cherry picked from commit 42c9f0fd0a)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2020-12-14 09:29:57 -08:00
Miss Islington (bot) 9feda9f871
bpo-42598: Fix implicit function declarations in configure (GH-23690) (GH-23757)
This is invalid in C99 and later and is an error with some compilers
(e.g. clang in Xcode 12), and can thus cause configure checks to
produce incorrect results.
(cherry picked from commit 674fa0a740)

Co-authored-by: Joshua Root <jmr@macports.org>
2020-12-13 17:01:59 -05:00
Miss Islington (bot) f6d1520219
bpo-40084: [Enum] dir() includes member attributes (GH-19219) (GH-22853)
(cherry picked from commit 68526fe258)

Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
2020-12-09 11:25:06 -08:00
Miss Islington (bot) cbfcc67170
bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23704)
(cherry picked from commit 37440eef7f)
2020-12-08 11:52:58 -08:00
Terry Jan Reedy b947b305a6
[3.8] bpo-41910: move news entry (GH-23698) 2020-12-08 13:00:03 -05:00
Victor Stinner b5cf308de8
bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692) (GH-23696)
Fix encoding name when running a ".pyc" file on Windows:
PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
filename.

* Add pyrun_file() subfunction.
* Add pyrun_simple_file() subfunction.
* PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
  _Py_fopen().

(cherry picked from commit b6d98c10ff)
(cherry picked from commit f0e42ae03c)
2020-12-08 17:42:31 +01:00
Łukasz Langa f01ec28949 Python 3.8.7rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl/OOOAACgkQsmmV4xAl
 BWh8nQ//dAtAJguTePQnppw/R4oGRJm40vjqkRAJhsGWYHJhkkZ8kl47ZelxXzFl
 +m3zPsa/6h/0ds4rvc3y8jJ4rXfLMmIFlPsw4bsm5Jr9d2tdWYqedJbEdcYRx/TX
 8mX6KLVgYtGBR1kxau2c58aI6fX3dgltSLJLT7VZSRIMTuRxXYekbfVFDVOi0PeC
 UXbgnHzrpG+Joh2tGMbXWNJQap7KGEI+KX64DZ+IA8PLxpIsyrNFfcRYIuXFg9TX
 DJLFDcCreHkUOJpxidC6l4n8kdf9RjKB6K4g5YbSoN6yEO1mtlbDgHlCOgRoWPJ7
 OmefmtxQ1yqV/NWf38ypheMy5i+ZkoMlfrKl/RIneiKsqNIFUvrPzvVaoaHD5o3r
 lxIY/bAr9CIHFCKyBD4nSINJ5ZaLBk/o0nx6lOl4P84gyJE+PiECIHRSODblHtNg
 bYf8LMQ0xB/VI6v4EjVDygH6wQl6wTUg3WjvoxwkV14bnlMNEZP2zjz6f7EXoEMT
 DGzMnG0apE8l+66edntnJQSM1FsCzvzKA2JvD+91EjwNeUNQGcddvnULuDXTrWFH
 Kr5/i60oOi90ZsFlPvT25eyI2r3uYqcGWPH83oBHuKtEXRJtGZs8biOla/mZTGo7
 fLys+yDA+KqFH5LoGTCkTdhFCY8yEU6LCXQYAXODkNLoELeadig=
 =T+75
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl/O38IQHGx1a2FzekBs
 YW5nYS5wbAAKCRCyaZXjECUFaF74D/9stvFY2BI9GEZjq+2nOgU8L0pMNEoqKh4m
 hzFtsOReC4eSO/RyvXX0U2qkH/CC7V+6CIZFBXX90eL/yFTWEFCGkB1xdTh9BE0S
 OqXrJ9IFsmfRCyyVPV28iGhbTUBohPMyMmxyx6wo8tFIonFwcST/q9WyZKrUP7Oe
 8NkgtBBCrrbRgAOZ5HtamBIPLtLUlqOvlL6HIQQSMMnAl04Zp3i+OeXqqDE2rxrd
 NPrlghtVwp21kpIE701rrnA3so5ZmVcXAZ7KIRqPam3bHW1saH4OuuGcilxciyrM
 SxiKgzwF826Yku+WAsJsBUdS5mjc1L+VDMdIVXZ2v4N4qCS1QNw7BtwwzvsTnbVU
 fiKv8ARjwDepvub9v9QKZ8r8sR9x4HILlGGJyodw67Mqrysap5opA9BStkRBSkDN
 NxifPMnxLgwJsj2y5Zs/sWI1MqMvvE2/7e/L4hS2bgOnF+DeYNEZWU5vP6N78DDz
 MSql2Ql3f9dusxETGrOUowY/UR5pQ6C+44wiquwysODTWFiDCcr/7bKq6DapkZr3
 h6GgFGxODoP7nx0CIZNF3nNzfUT1xNUAS2+siwNJ/nO8zeh5FbJfeYMN/PJ+QCGX
 y3WN0toocgtdDZfWc+zpcjAdw4xS3o5lpzlQZPiDhVG2X0MPNVVXlD6HdS7Yjakt
 w2XUqPCRBg==
 =G9Dw
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.7rc1' into 3.8

Python 3.8.7rc1
2020-12-08 03:06:56 +01:00
Miss Islington (bot) 699e5e4489
bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23672)
(cherry picked from commit c266736ec1)
2020-12-07 15:50:14 -08:00
Brandt Bucher 7c79798238
bpo-42536: GC track recycled tuples (GH-23623) (GH-23652)
Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector:

- collections.OrderedDict.items
- dict.items
- enumerate
- functools.reduce
- itertools.combinations
- itertools.combinations_with_replacement
- itertools.permutations
- itertools.product
- itertools.zip_longest
- zip

Previously, they could have become untracked by a prior garbage collection.
(cherry picked from commit 226a012d1c)
2020-12-07 20:08:24 +00:00
Miss Islington (bot) ca52aa3ddd
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)
(cherry picked from commit c0afb7fa0e)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
2020-12-07 09:50:48 -08:00
Łukasz Langa e3201094af
Python 3.8.7rc1 2020-12-07 15:13:36 +01:00
Miss Islington (bot) a4e7d5f750
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633)
This can happen when a file was edited after it was imported.
(cherry picked from commit 2e0760bb2e)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-12-04 13:44:53 -08:00
Miss Islington (bot) 3b14f18205
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
(cherry picked from commit 6e1eec71f5)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-12-04 12:20:09 -08:00
Miss Islington (bot) 8e8f82dd94
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
https://bugzilla.redhat.com/show_bug.cgi?id=1866884 is fixed in gdb
10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64).
(cherry picked from commit 066394018a)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-12-04 07:41:02 -08:00
Miss Islington (bot) 930d5377c5
bpo-42553: Fix test_asyncio.test_call_later() (GH-23627)
Fix test_asyncio.test_call_later() race condition: don't measure
asyncio performance in the call_later() unit test. The test failed
randomly on the CI.
(cherry picked from commit 7e5e13d113)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-12-03 05:15:28 -08:00
Miss Islington (bot) 1cc5c943c0
bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)
(cherry picked from commit 427613f005)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-11-30 17:53:40 -08:00
Miss Islington (bot) b1c48e5136
bpo-42406: Fix whichmodule() with multiprocessing (GH-23403)
* bpo-42406: Fix whichmodule() with multiprocessing

Signed-off-by: Renato L. de F. Cunha <renatoc@br.ibm.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 86684319d3)

Co-authored-by: Renato Cunha <renatocunha@acm.org>
2020-11-29 10:43:36 -08:00
Miss Islington (bot) 4498e98a6b
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925) (#23540)
Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
(cherry picked from commit 8085f742f4)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-11-28 16:44:34 +02:00
Miss Islington (bot) bda2e68c88
bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409)
Restore fix from 011525ee92.
(cherry picked from commit 4fedd7123e)

Co-authored-by: Julien Palard <julien@palard.fr>
2020-11-25 02:01:01 -08:00
Miss Islington (bot) ad49526c80
bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)
The function accepts now the representation of the default state as
empty sequence (as returned by Style.map()).
The structure of the result is now the same on all platform
and does not depend on the value of wantobjects.
(cherry picked from commit dd844a2916)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-23 00:51:22 -08:00
Miss Islington (bot) 28b40d7a34
bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)
(cherry picked from commit 453bc1da20)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-21 21:24:11 -08:00
Miss Islington (bot) 6e665424d6
bpo-38443: Check that the specified universal architectures work (GH-22910)
As [bpo-38443]() says the error message from configure when specifying --enable-universalsdk with a set of architectures that is not supported by the compiler is not very helpful.   This PR explicitly checks if the compiler works and bails out if it doesn't.
(cherry picked from commit 0f20bd9042)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-11-21 17:54:08 -08:00
Miss Islington (bot) 97136d71a7
bpo-40791: Make compare_digest more constant-time. (GH-20444)
* bpo-40791: Make compare_digest more constant-time.

The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization.

(This is change GH-1 from https://bugs.python.org/issue40791 .)
(cherry picked from commit 31729366e2)

Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
2020-11-21 01:12:21 -08:00
Miss Islington (bot) c076d48805
bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)
Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None.
(cherry picked from commit 7ddbaa7a1b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-11-19 23:22:29 -08:00
Miss Islington (bot) 66dd5338a1
bpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)
Fix a race condition in "make regen-all" when make -jN option is used
to run jobs in parallel. The clinic.py script now only use atomic
write to write files. Moveover, generated files are now left
unchanged if the content does not change, to not change the file
modification time.

The "make regen-all" command runs "make clinic" and "make
regen-importlib" targets:

* "make regen-importlib" builds object files (ex: Modules/_weakref.o)
  from source files (ex: Modules/_weakref.c) and clinic files (ex:
  Modules/clinic/_weakref.c.h)
* "make clinic" always rewrites all clinic files
  (ex: Modules/clinic/_weakref.c.h)

Since there is no dependency between "clinic" and "regen-importlib"
Makefile targets, these two targets can be run in parallel. Moreover,
half of clinic.py file writes are not atomic and so there is a race
condition when "make regen-all" runs jobs in parallel using make -jN
option (which can be passed in MAKEFLAGS environment variable).

Fix clinic.py to make all file writes atomic:

* Add write_file() function to ensure that all file writes are
  atomic: write into a temporary file and then use os.replace().
* Moreover, write_file() doesn't recreate or modify the file if the
  content does not change to avoid modifying the file modification
  file.
* Update test_clinic to verify these assertions with a functional
  test.
* Remove Clinic.force attribute which was no longer used, whereas
  Clinic.verify remains useful.

(cherry picked from commit 8fba9523cf)
(cherry picked from commit c53c3f4000)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-11-18 08:28:57 -08:00