Skip to content
Branch: 3.7
Find file History
Pull request Compare This branch is 2612 commits ahead, 5289 commits behind master.
miss-islington and tirkarthi bpo-38473: Handle autospecced functions and methods used with attach_…
…mock (GH-16784) (#18166)

If an autospecced object is attached using attach_mock the
child would be a function with mock object as attribute from
which signature has to be derived.

(cherry picked from commit 66b00a9)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Latest commit 71d2b33 Jan 25, 2020
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
asyncio [3.7] bpo-39191: Don't spawn a task before failing (GH-17796) (#17821) Jan 4, 2020
collections bpo-36953: Delay removal of ABCs from collections. (GH-13409) Oct 14, 2019
concurrent Fix typo in Lib/concurrent/futures/thread.py (GH-13953) Jun 15, 2019
ctypes [3.7] bpo-16575: Disabled checks for union types being passed by valu… Jan 12, 2020
curses [3.7] bpo-36492: Fix passing special keyword arguments to some functi… Apr 1, 2019
dbm bpo-30144: Import collections ABC from collections.abc rather than co… Apr 24, 2017
distutils bpo-38088: Fixes distutils not finding vcruntime140.dll with only v14… Sep 10, 2019
email bpo-38332: Catch KeyError from unknown cte in encoded-word. (GH-16503) Oct 12, 2019
encodings bpo-38945: UU Encoding: Don't let newline in filename corrupt the out… Dec 2, 2019
ensurepip [3.7] bpo-37664: Update ensurepip bundled wheels, again (GH-15483) (G… Aug 26, 2019
html bpo-30629: Remove second call of str.lower() in html.parser.parse_end… Jun 17, 2017
http bpo-38804: Fix REDoS in http.cookiejar (GH-17157) Nov 22, 2019
idlelib bpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068) Jan 25, 2020
importlib [3.7] Fix typos in docs, comments and test assert messages (GH-14872). ( Jul 22, 2019
json bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460) Dec 4, 2019
lib2to3 bpo-38871: Fix lib2to3 for filter-based statements that contain lambda ( Jan 7, 2020
logging bpo-39198: Ensure logging global lock is released on exception in isE… Jan 7, 2020
msilib bpo-12639: msilib.Directory.start_component() fails if *keyfile* is n… May 31, 2019
multiprocessing bpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572) Jul 4, 2019
pydoc_data 3.7.6 Dec 18, 2019
site-packages Issue #29283: Delete accidentally added Lib/site-packages/README Jan 30, 2017
sqlite3 bpo-38185: Fixed case-insensitive string comparison in sqlite3.Row in… Sep 17, 2019
test [3.7] bpo-35182: fix communicate() crash after child closes its pipes ( Jan 23, 2020
tkinter bpo-39152: add missing ttk.Scale.configure return value (GH-17815) Jan 5, 2020
turtledemo bpo-14117: Make minor tweaks to turtledemo (GH-8002) Jun 29, 2018
unittest bpo-38473: Handle autospecced functions and methods used with attach_… Jan 25, 2020
urllib bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619) Jan 5, 2020
venv bpo-38344: Fix syntax in activate.bat (GH-16533) Oct 14, 2019
wsgiref bpo-29183: Fix double exceptions in wsgiref.handlers.BaseHandler (GH-… May 19, 2019
xml bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-… Dec 10, 2018
xmlrpc bpo-38243, xmlrpc.server: Escape the server_title (GH-16373) Sep 27, 2019
__future__.py String annotations [PEP 563] (#4390) Jan 26, 2018
__phello__.foo.py Fix the frozen bytecode for __hello__ (betcha didn't know that existed Oct 18, 2001
_bootlocale.py bpo-29240: PEP 540: Add a new UTF-8 Mode (#855) Dec 13, 2017
_collections_abc.py bpo-32467: Let collections.abc.ValuesView inherit from Collection (#5152 Jan 12, 2018
_compat_pickle.py Issue #15767: Add ModuleNotFoundError. Sep 7, 2016
_compression.py Issue #23529: Limit the size of decompressed data when reading from Apr 10, 2015
_dummy_thread.py bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943) Jun 17, 2019
_markupbase.py #13576: add tests about the handling of (possibly broken) condcoms. Dec 19, 2011
_osx_support.py bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (G… Dec 23, 2018
_py_abc.py bpo-33018: Improve issubclass() error checking and message. (GH-5944) Mar 22, 2018
_pydecimal.py bpo-35133: Fix mistakes when concatenate string literals on different… Nov 5, 2018
_pyio.py [3.7] closes bpo-27805: Ignore ESPIPE in initializing seek of append-… Nov 12, 2019
_sitebuiltins.py #9364: Improve the text printed by help(pydoc) and help(help). Apr 19, 2014
_strptime.py Spelling fixes to docs, docstrings, and comments (GH-6374) Apr 20, 2018
_threading_local.py Delete a broken threading.local example (GH-5870) Feb 25, 2018
_weakrefset.py bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) May 18, 2017
abc.py bpo-31333: Re-implement ABCMeta in C (GH-5733) Feb 18, 2018
aifc.py bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) Mar 18, 2018
antigravity.py Change the xkcd link in comment over https. (GH-9293) Sep 14, 2018
argparse.py bpo-38821: Fix crash in argparse when using gettext (GH-17192) Nov 20, 2019
ast.py bpo-37950: Fix ast.dump() when call with incompletely initialized nod… Aug 29, 2019
asynchat.py Issue #25002: Back out asyncore/asynchat deprecation. Oct 26, 2016
asyncore.py bpo-29639: change test.support.HOST to "localhost" Sep 9, 2017
base64.py bpo-39055: Reject a trailing \n in base64.b64decode() with validate=T… Jan 5, 2020
bdb.py [3.7] bpo-36492: Fix passing special keyword arguments to some functi… Apr 1, 2019
binhex.py Issue #23865: close() methods in multiple modules now are idempotent … Apr 10, 2015
bisect.py Issue #28792: Remove aliases from _bisect Nov 24, 2016
bz2.py bpo-31370: Remove support for threads-less builds (#3385) Sep 7, 2017
cProfile.py [3.7] bpo-36492: Fix passing special keyword arguments to some functi… Apr 1, 2019
calendar.py Closes bpo-28281: Remove year (1-9999) limits on the weekday() functi… Oct 26, 2017
cgi.py bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has… ( Sep 11, 2019
cgitb.py bpo-33256: Replace angle brackets around python object repr to displa… Apr 29, 2018
chunk.py bpo-29762: More use "raise from None". (#569) Apr 5, 2017
cmd.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) Jul 4, 2013
code.py Fix documentation in code.py (GH-17988) Jan 14, 2020
codecs.py bpo-33361: Fix bug with seeking in StreamRecoders (GH-8278) May 31, 2019
codeop.py bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py ( Dec 6, 2019
colorsys.py Issue #14323: Expanded the number of digits in the coefficients for the Aug 6, 2013
compileall.py bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_E… Nov 28, 2018
configparser.py bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123) Sep 29, 2018
contextlib.py [3.7] bpo-36492: Fix passing special keyword arguments to some functi… Apr 1, 2019
contextvars.py bpo-32436: Implement PEP 567 (#5027) Jan 23, 2018
copy.py bpo-38293: Allow shallow and deep copying of property objects (GH-16438) Jan 12, 2020
copyreg.py bpo-31107: Fix copyreg mangled slot names calculation. (#2989) Aug 4, 2017
crypt.py bpo-31702: Allow to specify rounds for SHA-2 hashing in crypt.mksalt(… Nov 16, 2017
csv.py bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) (GH-5602) Feb 9, 2018
dataclasses.py bpo-34776: Fix dataclasses to support __future__ "annotations" mode (G… Dec 9, 2019
datetime.py bpo-37642: Update acceptable offsets in timezone (GH-14878) (#15226) Aug 15, 2019
decimal.py Whitespace. Sep 10, 2014
difflib.py [3.7] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17128) Nov 12, 2019
dis.py bpo-31183: `dis` now handles coroutines & async generators (GH-3077) Aug 18, 2017
doctest.py bpo-36406: Handle namespace packages in doctest (GH-12520) (GH-17592) Dec 13, 2019
dummy_threading.py Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370 Sep 18, 2017
enum.py Doc: Fix spelling errors of 'initial' in enum.py (GH-16314) Sep 21, 2019
filecmp.py shallow defaults to 'True' not '1' (closes #21355) Apr 26, 2014
fileinput.py bpo-37014: Update docstring and Documentation of fileinput.FileInput(… Jun 2, 2019
fnmatch.py bpo-32775: Fix regular expression warnings in fnmatch. (GH-5583) (GH-… Feb 9, 2018
formatter.py Issue #25407: Drop the mention of the formatter module being removed Oct 16, 2015
fractions.py Issue #27832: Make _normalize parameter to Fraction.__init__ keyword-… Aug 23, 2016
ftplib.py [3.7] bpo-35128: Fix spacing issues in warning.warn() messages. (GH-1… Nov 1, 2018
functools.py Doc: Fix Wikipedia link for functools.lru_cache (GH-16183) Sep 16, 2019
genericpath.py bpo-30974: Change os.path.samefile docstring to match docs (GH-7337) Aug 2, 2019
getopt.py Issue #25523: Correct "a" article to "an" article Nov 2, 2015
getpass.py getpass: update docstrings (#49) Feb 12, 2017
gettext.py bpo-30152: Reduce the number of imports for argparse. (#1269) Sep 25, 2017
glob.py Issue #27998: Removed workarounds for supporting bytes paths on Windo… Oct 5, 2016
gzip.py Replace KB unit with KiB (#4293) Nov 8, 2017
hashlib.py [3.7] bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346 Jul 31, 2018
heapq.py Improve clarity (and small speed-up) by using tuple unpacking (#3289) Sep 4, 2017
hmac.py bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062) May 22, 2018
imaplib.py [3.7] bpo-35128: Fix spacing issues in warning.warn() messages. (GH-1… Nov 1, 2018
imghdr.py Issue #28228: imghdr now supports pathlib Oct 1, 2016
imp.py closes bpo-34056: Always return bytes from _HackedGetData.get_data(). ( Jul 7, 2018
inspect.py bpo-34706: Preserve subclassing in inspect.Signature.from_callable (G… Sep 13, 2019
io.py Issue #1602: Windows console doesn't input or print Unicode (PEP 528) Aug 31, 2016
ipaddress.py bpo-27860: ipaddress: fix Interface constructor (GH-14200) Jun 19, 2019
keyword.py bpo-30406: Make async and await proper keywords (#1669) Oct 6, 2017
linecache.py Issue #23838: linecache now clears the cache and returns an empty res… Apr 1, 2015
locale.py bpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localen… Aug 29, 2019
lzma.py Issue #28229: lzma module now supports pathlib Oct 4, 2016
macpath.py bpo-31802: Fix importing native path module before importing os. (#4017) Jan 7, 2018
mailbox.py bpo-29762: More use "raise from None". (#569) Apr 5, 2017
mailcap.py #14977: Make mailcap respect the order of the lines in the mailcap file. Sep 10, 2016
mimetypes.py [3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to al… Oct 14, 2019
modulefinder.py closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575) Dec 9, 2017
netrc.py bpo-28334: netrc() now uses expanduser() to find .netrc file (GH-4537) Nov 25, 2017
nntplib.py bpo-39242: Updated the Gmane domain into news.gmane.io (GH-17903) Jan 8, 2020
ntpath.py [3.7] bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) Oct 25, 2018
nturl2path.py bpo-29836: Remove nturl2path from test_sundry and amend the module do… Mar 17, 2017
numbers.py Fix miscellaneous typos (#4275) Nov 5, 2017
opcode.py [3.7] bpo-32746: Fix multiple typos (GH-5144) (GH-5520) Feb 4, 2018
operator.py Issue #24379: Revert the operator.subscript patch (dccc4e63aef5) pend… Nov 2, 2015
optparse.py Merge doc and comment fixes from 3.5 Apr 19, 2016
os.py [3.7] bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336) (GH-17685) Dec 23, 2019
pathlib.py bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679) Nov 2, 2019
pdb.py closes bpo-37803: pdb: fix handling of options (--help / --version) (G… Sep 12, 2019
pickle.py bpo-31829: Make protocol 0 pickles be loadable in text mode in Python… Jun 12, 2019
pickletools.py Fix pickletools doc for NEWFALSE. (GH-9432) Sep 26, 2018
pipes.py Merge doc changes from 3.2 (#10454, #12298) Sep 1, 2011
pkgutil.py closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575) Dec 9, 2017
platform.py [3.7] bpo-36766: Typos in docs and code comments (GH-13116). (GH-13136) May 6, 2019
plistlib.py Clarify that plistlib's load and dump functions take a binary file ob… Jul 14, 2019
poplib.py [3.7] bpo-35128: Fix spacing issues in warning.warn() messages. (GH-1… Nov 1, 2018
posixpath.py [3.7] bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12862) Apr 17, 2019
pprint.py bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180) Dec 17, 2018
profile.py [3.7] bpo-36492: Fix passing special keyword arguments to some functi… Apr 1, 2019
pstats.py [3.7] bpo-36766: Typos in docs and code comments (GH-13116). (GH-13136) May 6, 2019
pty.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) Jul 4, 2013
py_compile.py bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_E… Nov 28, 2018
pyclbr.py bpo-6691: Pyclbr now reports nested classes and functions. (#2503) Jul 4, 2017
pydoc.py bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) Dec 17, 2018
queue.py bpo-14976: Reentrant simple queue (#3346) Jan 15, 2018
quopri.py Issue #23681: Fixed Python 2 to 3 poring bugs. Mar 20, 2015
random.py bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180) Dec 17, 2018
re.py bpo-32338: OrderedDict import is no longer needed in re. (GH-4891) Mar 11, 2018
reprlib.py bpo-31370: Remove support for threads-less builds (#3385) Sep 7, 2017
rlcompleter.py Merge 3.5 Feb 4, 2016
runpy.py [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with… Sep 7, 2016
sched.py bpo-31370: Remove support for threads-less builds (#3385) Sep 7, 2017
secrets.py Issue #29061: secrets.randbelow() would hang with a negative input Dec 30, 2016
selectors.py bpo-30624 remaining bare except (#2108) Jun 12, 2017
shelve.py Fix misleading docsting of shelve.open(). (GH-6427) Apr 9, 2018
shlex.py Add docstring for shlex.split (GH-16740) (GH-17012) Oct 31, 2019
shutil.py bpo-24564: shutil.copystat(): ignore EINVAL on os.setxattr() (GH-13369) May 30, 2019
signal.py Issue #25523: Further a-to-an corrections new in 3.5 Nov 2, 2015
site.py bpo-37369: Fixes path for sys.executable when running from the Micros… Jun 28, 2019
smtpd.py Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej Jun 6, 2016
smtplib.py bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (GH-16525 Oct 12, 2019
sndhdr.py bpo-31985: Deprecate openfp in aifc, sunau, and wave (#4344) Nov 10, 2017
socket.py bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py ( Dec 6, 2019
socketserver.py Fix typo in Lib/socketserver.py (GH-17024) Nov 16, 2019
sre_compile.py bpo-31690: Allow the inline flags "a", "L", and "u" to be used as gro… Oct 24, 2017
sre_constants.py bpo-31690: Allow the inline flags "a", "L", and "u" to be used as gro… Oct 24, 2017
sre_parse.py bpo-37723: Fix performance regression on regular expression parsing. (G… Jul 31, 2019
ssl.py bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499) Jul 2, 2019
stat.py bpo-38109: Add missing constants to Lib/stat.py (GH-16665) (GH-16691) Oct 10, 2019
statistics.py bpo-29919: Remove unused imports found by pyflakes (#137) Mar 27, 2017
string.py bpo-31672: Restore the former behavior when override flags in Templat… Jan 4, 2018
stringprep.py Merged revisions 55007-55179 via svnmerge from May 7, 2007
struct.py Issue #17804: New function ``struct.iter_unpack`` allows for streamin… Apr 26, 2013
subprocess.py [3.7] bpo-35182: fix communicate() crash after child closes its pipes ( Jan 23, 2020
sunau.py bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) Mar 18, 2018
symbol.py bpo-30406: Make async and await proper keywords (#1669) Oct 6, 2017
symtable.py bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) May 18, 2017
sysconfig.py bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744) Feb 5, 2019
tabnanny.py bpo-30166: Import command-line parsing modules only when needed. (#1293) May 4, 2017
tarfile.py bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161) Jan 24, 2020
telnetlib.py bpo-30397: Add re.Pattern and re.Match. (#1646) Oct 4, 2017
tempfile.py bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400) Nov 28, 2019
textwrap.py bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469) Jun 30, 2019
this.py Fix most trivially-findable print statements. Feb 9, 2007
threading.py Improve threading.daemon docstring (GH-14278) Jun 23, 2019
timeit.py bpo-28240: timeit: Update repeat() doc (GH-7419) (GH-7457) Jun 6, 2018
token.py bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447) Apr 11, 2018
tokenize.py [3.7] bpo-36766: Typos in docs and code comments (GH-13116). (GH-13136) May 6, 2019
trace.py [3.7] bpo-36492: Fix passing special keyword arguments to some functi… Apr 1, 2019
traceback.py bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077) Sep 10, 2018
tracemalloc.py bpo-32121: Add most_recent_first parameter to tracemalloc.Traceback.f… Nov 29, 2017
tty.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe… Mar 1, 2001
turtle.py [3.7] bpo-36766: Typos in docs and code comments (GH-13116). (GH-13136) May 6, 2019
types.py bpo-36091: Remove reference to async generator in Lib/types.py. (GH-1… Mar 3, 2019
typing.py bpo-37838: get_type_hints for wrapped functions with forward reference ( Nov 21, 2019
uu.py bpo-38945: UU Encoding: Don't let newline in filename corrupt the out… Dec 2, 2019
uuid.py [3.7] bpo-34621: backwards-compatible pickle UUID with is_safe=unknown ( Aug 4, 2019
warnings.py bpo-39056: Fix handling invalid warning category in the -W option. (G… Jan 5, 2020
wave.py Fix a typo in wave module docstring (GH-17009) Nov 5, 2019
weakref.py bpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641) (G… Sep 9, 2019
webbrowser.py Fix typo from base to based (GH-18055) Jan 19, 2020
xdrlib.py Issue #11694: Raise ConversionError in xdrlib as documented Oct 10, 2014
zipapp.py bpo-31638: Add compression support to zipapp (GH-3819) Sep 29, 2017
zipfile.py bpo-36993: Improve error reporting for zipfiles with bad zip64 extra … Oct 29, 2019
You can’t perform that action at this time.