Permalink
Commits on Apr 29, 2017
  1. bpo-30158: Fix deprecation warnings in test_importlib introduced by b…

    …po-29576. (#1285)
    serhiy-storchaka committed on GitHub Apr 29, 2017
Commits on Apr 28, 2017
  1. bpo-30197: Enhance functions swap_attr() and swap_item() in test.supp…

    …ort. (#1341)
    
    * bpo-30197: Enhance functions swap_attr() and swap_item() in test.support.
    
    They now work when delete replaced attribute or item inside the with
    statement.  The old value of the attribute or item (or None if it doesn't
    exist) now will be assigned to the target of the "as" clause, if there is
    one.
    
    * Update docstrings.
    serhiy-storchaka committed with haypo Apr 28, 2017
  2. bpo-30104: Only use -fno-strict-aliasing on dtoa.c (#1340)

    On clang, only compile dtoa.c with -fno-strict-aliasing, use strict
    aliasing to compile all other C files.
    haypo committed on GitHub Apr 28, 2017
Commits on Apr 27, 2017
  1. bpo-30174: Remove duplicate definition from pickletools (#1301)

    There were two almost identical definitions of bytes1.
    JelleZijlstra committed with serhiy-storchaka Apr 27, 2017
  2. bpo-30175: Skip client cert tests of test_imaplib (#1320)

    * bpo-30175: Skip client cert tests of test_imaplib
    
    The IMAP server cyrus.andrew.cmu.edu doesn't accept our randomly
    generated client x509 certificate anymore.
    
    * bpo-30188: Catch EOFError in NetworkedNNTPTests
    
    test_nntplib fails randomly with EOFError in
    NetworkedNNTPTests.setUpClass(). Catch EOFError to skip tests in that
    case.
    haypo committed on GitHub Apr 27, 2017
Commits on Apr 26, 2017
  1. bpo-30101: Add support for curses.A_ITALIC. (#1015)

    Eijebong committed with zhangyangyu Apr 26, 2017
  2. bpo-30131: test_logging now joins queue threads (#1298)

    QueueListenerTest of test_logging now closes the multiprocessing
    Queue and joins its thread to prevent leaking dangling threads to
    following tests.
    
    Add also @support.reap_threads to detect earlier if a test leaks
    threads (and try to "cleanup" these threads).
    haypo committed on GitHub Apr 26, 2017
  3. timemodule.c: Cast PyUnicode_AsUTF8() to char* (#1294)

    bpo-28769 changed PyUnicode_AsUTF8() return type from const char* to
    char* in Python 3.7, but tm_zone field type of the tm structure is
    char* on FreeBSD.
    
    Cast PyUnicode_AsUTF8() to char* in gettmarg() to fix the warning:
    
        Modules/timemodule.c:443:20: warning: assigning to 'char *'
        from 'const char *' discards qualifiers
    haypo committed on GitHub Apr 26, 2017
  4. bpo-29974: Improve typing.TYPE_CHECKING example (GH-982)

    * Fix PEP 8 (SomeType instead of some_type)
    * Add a function parameter annotation
    * Explain, using wording from PEP 484 and PEP 526,
      why one annotation is in quotes and another is not.
    
    Suggested by Ivan Levkevskyi.
    Mortal committed with berkerpeksag Apr 26, 2017
  5. bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271

    )
    
    Builtin container types have two potential link targets in the docs:
    
    - their entry in the list of builtin callables
    - their type documentation
    
    This change brings `bytes` and `bytearray` into line with other
    container types by having cross-references default to linking to
    their type documentation, rather than their builtin callable entry.
    csabella committed with ncoghlan Apr 26, 2017
Commits on Apr 25, 2017
  1. bpo-30107: Make SuppressCrashReport quiet on macOS (#1279)

    On macOS, SuppressCrashReport now redirects /usr/bin/defaults command
    stderr into a pipe to not pollute stderr. It fixes a
    test_io.test_daemon_threads_shutdown_stderr_deadlock() failure when
    the CrashReporter domain doesn't exists. Message logged into stderr:
    
    2017-04-24 16:57:21.432 defaults[41046:2462851]
    The domain/default pair of (com.apple.CrashReporter, DialogType) does not exist
    haypo committed on GitHub Apr 25, 2017
  2. bpo:29950: Rename SlotWrapperType to WrapperDescriptorType (GH-926)

    DimitrisJim committed with berkerpeksag Apr 25, 2017
  3. bpo-28851: Improve namedtuple documentation (GH-1274)

    Clarify that a sequence of strings is the preferred value for 'field_names'.
    csabella committed with Mariatta Apr 25, 2017
  4. bpo-29617: Remove Python 3.3 support from asyncio (GH-232)

    methane committed on GitHub Apr 25, 2017
  5. bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278)

    test_build_ext() of test_distutils now uses support.temp_cwd() to
    prevent the creation of a pdb file in the current working directory
    on Windows.
    haypo committed on GitHub Apr 25, 2017
Commits on Apr 24, 2017
  1. tmtotuple(): use time_t for gmtoff (#1276)

    timegm() return type is time_t, not int. Use time_t to prevent the
    following compiler warning on Windows:
    
    timemodule.c: warning C4244: '=': conversion from 'time_t' to 'int',
                  possible loss of data
    haypo committed on GitHub Apr 24, 2017
  2. bpo-30131: Cleanup threads in test_logging (#1275)

    * Use @support.reap_threads on unit tests creating threads
    * Call TestCase.fail() on thread.join(timeout) failure
    haypo committed on GitHub Apr 24, 2017
  3. bpo-29822: Make inspect.isabstract() work during __init_subclass__. (#…

    …678)
    
    At the time when an abstract base class' __init_subclass__ runs,
    ABCMeta.__new__ has not yet finished running, so in the presence of
    __init_subclass__, inspect.isabstract() can no longer depend only on
    TPFLAGS_IS_ABSTRACT.
    Soares committed with serhiy-storchaka Apr 24, 2017
  4. bpo-30144: Import collections ABC from collections.abc rather than co…

    …llections. (#1263)
    serhiy-storchaka committed on GitHub Apr 24, 2017
Commits on Apr 23, 2017
Commits on Apr 22, 2017
  1. Remove outdated note about constraining of the bit shift right operan…

    …d. (#1258)
    
    The constrain was removed in bpo-29816.
    serhiy-storchaka committed on GitHub Apr 22, 2017
  2. Remove unneeded Misc/NEWS entry for bpo-29802. (#1251)

    The bug was added in still not released version.
    serhiy-storchaka committed on GitHub Apr 22, 2017
  3. bpo-29960 _random.Random corrupted on exception in setstate(). (#1019)

    bladebryan committed with serhiy-storchaka Apr 22, 2017
Commits on Apr 21, 2017
  1. bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and PySet…

    …_GET_SIZE. (#751)
    serhiy-storchaka committed with haypo Apr 21, 2017
  2. bpo-30125: disable faulthandler in ctypes test_SEH (#1237)

    Disable faulthandler to run test_SEH() of test_ctypes to prevent the
    following log with a traceback:
    
        Windows fatal exception: access violation
    
    Add support.disable_faulthandler() context manager.
    haypo committed on GitHub Apr 21, 2017