1. 30 Jun, 2017 4 commits
    • Victor Stinner's avatar
      bpo-30813: Fix unittest when hunting refleaks (#2502) · e4f9a2d2
      Victor Stinner authored
      bpo-11798, bpo-16662, bpo-16935, bpo-30813: Skip
      test_discover_with_module_that_raises_SkipTest_on_import() and
      test_discover_with_init_module_that_raises_SkipTest_on_import() of
      test_unittest when hunting reference leaks using regrtest.
      e4f9a2d2
    • Victor Stinner's avatar
      bpo-30280: Cleanup threads in ayncio tests (#2501) · b9030674
      Victor Stinner authored
      * bpo-30280: asyncio now cleans up threads
      
      asyncio base TestCase now uses threading_setup() and
      threading_cleanup() of test.support to cleanup threads.
      
      * asyncio: Fix TestBaseSelectorEventLoop cleanup
      
      bpo-30280: TestBaseSelectorEventLoop of
      test.test_asyncio.test_selector_events now correctly closes the event
      loop: cleanup its executor to not leak threads.
      
      Don't override the close() method of the event loop, only override
      the_close_self_pipe() method.
      b9030674
    • Victor Stinner's avatar
      threading_cleanup() failure marks test as ENV_CHANGED (#2500) · 21a0a6c9
      Victor Stinner authored
      If threading_cleanup() fails to cleanup threads, set a a new
      support.environment_altered flag to true, flag uses by save_env which
      is used by regrtest to check if a test altered the environment. At
      the end, the test file fails with ENV_CHANGED instead of SUCCESS, to
      report that it altered the environment.
      21a0a6c9
    • Antoine Pitrou's avatar
      bpo-30807: signal.setitimer() may disable the timer by mistake (#2493) · 729780a8
      Antoine Pitrou authored
      * bpo-30807: signal.setitimer() may disable the timer by mistake
      
      * Add NEWS blurb
      729780a8
  2. 29 Jun, 2017 5 commits
    • csabella's avatar
      bpo-30495: IDLE: improve textview with docstrings, PEP8 names, more tests. (#2283) · 42bc8bea
      csabella authored
      Split TextViewer class into ViewWindow, ViewFrame, and TextFrame classes so that instances
      of the latter two can be placed with other widgets within a multiframe window.
      Patch by Cheryl Sabella.
      42bc8bea
    • Nick Coghlan's avatar
      bpo-30647: Check nl_langinfo(CODESET) in locale coercion (GH-2374) · 18974c35
      Nick Coghlan authored
      - On some versions of FreeBSD, setting the "UTF-8" locale
        succeeds, but a subsequent "nl_langinfo(CODESET)" fails
      - adding a check for this in the coercion logic means that
        coercion will happen on systems where this check succeeds,
        and will be skipped otherwise
      - that way CPython should automatically adapt to changes in
        platform behaviour, rather than needing a new release to
        enable coercion at build time
      - this also allows UTF-8 to be re-enabled as a coercion
        target, restoring the locale coercion behaviour on Mac OS X
      18974c35
    • Antoine Pitrou's avatar
      bpo-30796: Fix failures in signal delivery stress test (#2488) · f7d090c1
      Antoine Pitrou authored
      * bpo-30796: Fix failures in signal delivery stress test
      
      setitimer() can have a poor minimum resolution on some machines,
      this would make the test reach its deadline (and a stray signal
      could then kill a subsequent test).
      
      * Make sure to clear the itimer after the test
      f7d090c1
    • Victor Stinner's avatar
      bpo-30776: regrtest: reduce memleak false positive (#2484) · beeca6e1
      Victor Stinner authored
      Only report a leak if each run leaks at least one memory block.
      beeca6e1
    • INADA Naoki's avatar
      bpo-29585: Fix sysconfig.get_config_var("PYTHONFRAMEWORK") (GH-2483) · 6b42eb17
      INADA Naoki authored
      `PYTHONFRAMEWORK` is defined in `Makefile` and it shoulnd't be used
      in `pyconfig.h`.
      
      `sysconfig.py --generate-posix-vars` reads config vars from Makefile
      and `pyconfig.h`.  Conflicting variables should be avoided.
      
      Especially, string config variables in Makefile are unquoted, but
      in `pyconfig.h` are keep quoted.  So it should be private (starts with
      underscore).
      6b42eb17
  3. 28 Jun, 2017 14 commits
  4. 27 Jun, 2017 8 commits
  5. 26 Jun, 2017 8 commits
  6. 25 Jun, 2017 1 commit