[Pytest-commit] [pytest-dev/pytest] ba407b: Clear sys.last_* attributes before running an item

Bruno Oliveira nicoddemus at gmail.com
Thu Apr 12 06:53:36 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/pytest-dev/pytest
  Commit: ba407b5eb601da54a893df769fd61e65a718bb66
      https://github.com/pytest-dev/pytest/commit/ba407b5eb601da54a893df769fd61e65a718bb66
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-04-04 (Wed, 04 Apr 2018)

  Changed paths:
    M _pytest/runner.py
    M testing/test_runner.py

  Log Message:
  -----------
  Clear sys.last_* attributes before running an item

Otherwise we will keep the last failed exception around forever

Related to #2798


  Commit: 78c900448e2683ba4ae03d6f21f500c1cc43ddd5
      https://github.com/pytest-dev/pytest/commit/78c900448e2683ba4ae03d6f21f500c1cc43ddd5
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-04-10 (Tue, 10 Apr 2018)

  Changed paths:
    M testing/acceptance_test.py

  Log Message:
  -----------
  Add acceptance test for #2798


  Commit: 6e8e3c967ada43ba47d0b85842607a5f975c5c81
      https://github.com/pytest-dev/pytest/commit/6e8e3c967ada43ba47d0b85842607a5f975c5c81
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-04-10 (Tue, 10 Apr 2018)

  Changed paths:
    A changelog/2798.bugfix.rst

  Log Message:
  -----------
  Add changelog entry for #2798


  Commit: 015626ce69bfda6e12aad4e3c4454cf35ff5ac95
      https://github.com/pytest-dev/pytest/commit/015626ce69bfda6e12aad4e3c4454cf35ff5ac95
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-04-12 (Thu, 12 Apr 2018)

  Changed paths:
    M _pytest/runner.py
    A changelog/2798.bugfix.rst
    M testing/acceptance_test.py
    M testing/test_runner.py

  Log Message:
  -----------
  Merge pull request #3384 from nicoddemus/leak-frame

Reset reference to failed test frame before each test executes


Compare: https://github.com/pytest-dev/pytest/compare/f9a908abb807...015626ce69bf


More information about the pytest-commit mailing list