Skip to content
Branch: master
Find file History
cfbolz bpo-39485: fix corner-case in method-detection of mock (GH-18252)
Replace check for whether something is a method in the mock module. The
previous version fails on PyPy, because there no method wrappers exist
(everything looks like a regular Python-defined function). Thus the
isinstance(getattr(result, '__get__', None), MethodWrapperTypes) check
returns True for any descriptor, not just methods.

This condition could also return erroneously True in CPython for
C-defined descriptors.

Instead to decide whether something is a method, just check directly
whether it's a function defined on the class. This passes all tests on
CPython and fixes the bug on PyPy.
Latest commit a327677 Jan 29, 2020
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
NEWS.d bpo-39485: fix corner-case in method-detection of mock (GH-18252) Jan 29, 2020
ACKS bpo-36051: Drop GIL during large bytes.join() (GH-17757) Jan 29, 2020
HISTORY Fix typos mostly in comments, docs and test names (GH-15209) Aug 30, 2019
Porting bpo-30737: Update DevGuide links to new URL (GH-3228) Aug 30, 2017
README bpo-32159: Revert Misc/svnmap.txt (#4639) Nov 29, 2017
README.AIX Replace KB unit with KiB (#4293) Nov 8, 2017
README.coverity Merged revisions 46753-51188 via svnmerge from Aug 11, 2006
README.valgrind bpo-18859: Document --with-valgrind option in README.valgrind (#10591) Nov 20, 2018
SpecialBuilds.txt bpo-36722: Style and grammar edits for ABI news entries (GH-12979) Apr 27, 2019
coverity_model.c bpo-35808: Retire pgen and use pgen2 to generate the parser (GH-11814) Mar 1, 2019
gdbinit bpo-15817: gdbinit: Document commands after defining them (GH-15021) Sep 9, 2019
indent.pro Merged revisions 86134,86315-86316,86390,86424-86425,86428,86550,8656… Nov 26, 2010
python-config.in bpo-38468 : Refactor python-config (#16749) Oct 15, 2019
python-config.sh.in bpo-37925: Mention --embed in python-config usage (GH-15458) Aug 26, 2019
python-embed.pc.in bpo-36721: Add --embed option to python-config (GH-13500) May 23, 2019
python-wing3.wpr Mark files as executable that are meant as scripts. (GH-15354) Sep 9, 2019
python-wing4.wpr Mark files as executable that are meant as scripts. (GH-15354) Sep 9, 2019
python-wing5.wpr Mark files as executable that are meant as scripts. (GH-15354) Sep 9, 2019
python.man bpo-39427: Document -X opt options in the CLI --help and the man page ( Jan 23, 2020
python.pc.in bpo-36721: Add --embed option to python-config (GH-13500) May 23, 2019
svnmap.txt bpo-32159: Revert Misc/svnmap.txt (#4639) Nov 29, 2017
valgrind-python.supp bpo-35561: Supress valgrind false alarm on epoll_ctl(event) (GH-18060) Jan 19, 2020
vgrindefs Patch #1550800: make exec a function. Sep 6, 2006

README

Python Misc subdirectory
========================

This directory contains files that wouldn't fit in elsewhere.  Some
documents are only of historic importance.

Files found here
----------------

ACKS                    Acknowledgements
gdbinit                 Handy stuff to put in your .gdbinit file, if you use gdb
HISTORY                 News from previous releases -- oldest last
indent.pro              GNU indent profile approximating my C style
NEWS                    News for this release (for some meaning of "this")
Porting                 Mini-FAQ on porting to new platforms
python-config.in        Python script template for python-config
python.man              UNIX man page for the python interpreter
python.pc.in            Package configuration info template for pkg-config
python-wing*.wpr        Wing IDE project file
README                  The file you're reading now
README.AIX              Information about using Python on AIX
README.coverity         Information about running Coverity's Prevent on Python
README.valgrind         Information for Valgrind users, see valgrind-python.supp
SpecialBuilds.txt       Describes extra symbols you can set for debug builds
svnmap.txt              Map of old SVN revs and branches to hg changeset ids,
                        help history-digging
valgrind-python.supp    Valgrind suppression file, see README.valgrind
vgrindefs               Python configuration for vgrind (a generic pretty printer)
You can’t perform that action at this time.