Skip to content
Permalink
main

Commits on Aug 30, 2021

  1. bpo-41620: TestCase.run() now always return a TestResult instance (GH…

    …-28030)
    
    Previously it returned None if the test class or method was
    decorated with a skipping decorator.
    
    Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com>
    serhiy-storchaka and Tabrizian committed Aug 30, 2021
  2. bpo-45007: Update multissl to openssl 1.1.1l as well (GH-28044)

    This was missed while upgrading CI.
    ambv committed Aug 30, 2021
  3. bpo-44689: ctypes.util.find_library() now finds macOS 11+ system libr…

    …aries when built on older macOS systems (#27251)
    
    Previously, when built on older macOS systems, `find_library` was not able to find macOS system libraries when running on Big Sur due to changes in how system libraries are stored.
    bergkvist committed Aug 30, 2021

Commits on Aug 29, 2021

  1. bpo-43124: Fix smtplib multiple CRLF injection (GH-25987)

    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    miguendes and ambv committed Aug 29, 2021
  2. bpo-44394: Update libexpat copy to 2.4.1 (GH-26945)

    Update the vendored copy of libexpat to 2.4.1 (from 2.2.8) to get the
    fix for the CVE-2013-0340 "Billion Laughs" vulnerability. This copy
    is most used on Windows and macOS.
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    vstinner and ambv committed Aug 29, 2021
  3. bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktem…

    …p in pydoc (GH-23200)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    E-Paine and ambv committed Aug 29, 2021

Commits on Aug 28, 2021

  1. bpo-25130: Make unit-test about restricting the maximum number of nes…

    …ted blocks cpython-only (GH-28002)
    
    PyPy and potentially other implementations have different or no
    contraints on the number of blocks that can be statically nested. move
    the test that checks for this behaviour into a unit test and mark it as
    CPython-only.
    cfbolz committed Aug 28, 2021
  2. bpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when …

    …two threads attempt to commit the last pending removal (GH-27921)
    
    Fixes:
    Traceback (most recent call last):
      File "/home/graingert/projects/asyncio-demo/demo.py", line 36, in <module>
        sys.exit(main())
      File "/home/graingert/projects/asyncio-demo/demo.py", line 30, in main
        test_all_tasks_threading()
      File "/home/graingert/projects/asyncio-demo/demo.py", line 24, in test_all_tasks_threading
        results.append(f.result())
      File "/usr/lib/python3.10/concurrent/futures/_base.py", line 438, in result
        return self.__get_result()
      File "/usr/lib/python3.10/concurrent/futures/_base.py", line 390, in __get_result
        raise self._exception
      File "/usr/lib/python3.10/concurrent/futures/thread.py", line 52, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/usr/lib/python3.10/asyncio/runners.py", line 47, in run
        _cancel_all_tasks(loop)
      File "/usr/lib/python3.10/asyncio/runners.py", line 56, in _cancel_all_tasks
        to_cancel = tasks.all_tasks(loop)
      File "/usr/lib/python3.10/asyncio/tasks.py", line 53, in all_tasks
        tasks = list(_all_tasks)
      File "/usr/lib/python3.10/_weakrefset.py", line 60, in __iter__
        with _IterationGuard(self):
      File "/usr/lib/python3.10/_weakrefset.py", line 33, in __exit__
        w._commit_removals()
      File "/usr/lib/python3.10/_weakrefset.py", line 57, in _commit_removals
        discard(l.pop())
    IndexError: pop from empty list
    
    Also fixes:
    Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
    Traceback (most recent call last):
      File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
        del self.data[k]
    KeyError: <weakref at 0x00007fe76e8d8180; dead>
    Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
    Traceback (most recent call last):
      File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
        del self.data[k]
    KeyError: <weakref at 0x00007fe76e8d81a0; dead>
    Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
    Traceback (most recent call last):
      File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
        del self.data[k]
    KeyError: <weakref at 0x000056548f1e24a0; dead>
    
    See: agronholm/anyio#362 (comment)
    See also: https://bugs.python.org/issue29519
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    graingert and ambv committed Aug 28, 2021

Commits on Aug 27, 2021

  1. bpo-44997: macOS does not support loadable SQLite extensions (GH-27979)

    Authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
    erlend-aasland committed Aug 27, 2021
  2. bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938)

    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    chilaxan and ambv committed Aug 27, 2021
  3. Update ACKS (GH-27988)

    8vasu committed Aug 27, 2021
  4. bpo-41818: ++ termios versionadded markers. (GH-27987)

    overlooked in #23686
    gpshead committed Aug 27, 2021
  5. bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686

    )
    
    * Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs.
    * Add TIOCGSIZE support to termios.tcgetwinsize()
    * Add TIOCSSIZE support to termios.tcsetwinsize()
    
    Authored-by: Soumendra Ganguly <soumendraganguly@gmail.com>
    
    * termios.tcgetwinsize() and termios.tcsetwinsize() should return/accept two-item tuples instead of lists.
    * Refactor tcsetwinsize to share common code and accept any two item sequence, with overflow checking.
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
    8vasu committed Aug 27, 2021

Commits on Aug 26, 2021

  1. bpo-45022: Pin current libffi build to fixed version in preparation f…

    …or upcoming update (GH-27982)
    
    Also improve the build script for libffi, which is not used as part of the regular build.
    zooba committed Aug 26, 2021
  2. bpo-40635: Fix getfqdn() docstring and docs (GH-27971)

    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    akulakov and ambv committed Aug 26, 2021
  3. bpo-45001: Make email date parsing more robust against malformed input (

    GH-27946)
    
    Various date parsing utilities in the email module, such as
    email.utils.parsedate(), are supposed to gracefully handle invalid
    input, typically by raising an appropriate exception or by returning
    None.
    
    The internal email._parseaddr._parsedate_tz() helper used by some of
    these date parsing routines tries to be robust against malformed input,
    but unfortunately it can still crash ungracefully when a non-empty but
    whitespace-only input is passed. This manifests as an unexpected
    IndexError.
    
    In practice, this can happen when parsing an email with only a newline
    inside a β€˜Date:’ header, which unfortunately happens occasionally in the
    real world.
    
    Here's a minimal example:
    
        $ python
        Python 3.9.6 (default, Jun 30 2021, 10:22:16)
        [GCC 11.1.0] on linux
        Type "help", "copyright", "credits" or "license" for more information.
        >>> import email.utils
        >>> email.utils.parsedate('foo')
        >>> email.utils.parsedate(' ')
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
          File "/usr/lib/python3.9/email/_parseaddr.py", line 176, in parsedate
            t = parsedate_tz(data)
          File "/usr/lib/python3.9/email/_parseaddr.py", line 50, in parsedate_tz
            res = _parsedate_tz(data)
          File "/usr/lib/python3.9/email/_parseaddr.py", line 72, in _parsedate_tz
            if data[0].endswith(',') or data[0].lower() in _daynames:
        IndexError: list index out of range
    
    The fix is rather straight-forward: guard against empty lists, after
    splitting on whitespace, but before accessing the first element.
    wbolster committed Aug 26, 2021
  4. bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968)

    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    serhiy-storchaka and ambv committed Aug 26, 2021

Commits on Aug 25, 2021

  1. bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947)

    Automerge-Triggered-By: GH:pablogsal
    corona10 committed Aug 25, 2021
  2. bpo-44929: [Enum] Fix global repr (GH-27789)

    * Fix typo in __repr__ code
    
    * Add more tests for global int flag reprs
    
    * use last module if multi-module string
      - when an enum's `__module__` contains several module names, only
         use the last one
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
    3 people committed Aug 25, 2021
Older