[Pytest-commit] [pytest-dev/pytest] d24a7e: Issue warning if Monkeypatch.setenv/delenv receive...

Bruno Oliveira nicoddemus at gmail.com
Tue Oct 2 06:56:34 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/pytest-dev/pytest
  Commit: d24a7e6c5a415ece9ad377d13b20daefc944fdd4
      https://github.com/pytest-dev/pytest/commit/d24a7e6c5a415ece9ad377d13b20daefc944fdd4
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-10-01 (Mon, 01 Oct 2018)

  Changed paths:
    A changelog/4056.bugfix.rst
    M src/_pytest/monkeypatch.py
    M testing/test_monkeypatch.py

  Log Message:
  -----------
  Issue warning if Monkeypatch.setenv/delenv receive non-strings in Python 2

Fixes the bug described in:

	https://github.com/tox-dev/tox/pull/1025#discussion_r221273830

Which is more evident when using `unicode_literals`.


  Commit: bc009a8582b4787c409528bf9c0d1bc6792d35ce
      https://github.com/pytest-dev/pytest/commit/bc009a8582b4787c409528bf9c0d1bc6792d35ce
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-10-01 (Mon, 01 Oct 2018)

  Changed paths:
    M testing/code/test_source.py

  Log Message:
  -----------
  Fix test to comply with pypy 6.0


  Commit: 9d971d33bec34715715bf5c5c269bc73fca00c36
      https://github.com/pytest-dev/pytest/commit/9d971d33bec34715715bf5c5c269bc73fca00c36
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-10-01 (Mon, 01 Oct 2018)

  Changed paths:
    M src/_pytest/recwarn.py

  Log Message:
  -----------
  Hide internal pytest.warns traceback


  Commit: 1a323fbd3c52db051ae32e2b27275717b891b322
      https://github.com/pytest-dev/pytest/commit/1a323fbd3c52db051ae32e2b27275717b891b322
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-10-01 (Mon, 01 Oct 2018)

  Changed paths:
    M src/_pytest/monkeypatch.py
    M testing/acceptance_test.py
    M testing/test_cacheprovider.py
    M testing/test_junitxml.py
    M testing/test_monkeypatch.py

  Log Message:
  -----------
  Show a warning when non-str is given to Monkeypatch.setenv


  Commit: 25fe3706a4c5b327c8050335ea10326a14638e4c
      https://github.com/pytest-dev/pytest/commit/25fe3706a4c5b327c8050335ea10326a14638e4c
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-10-02 (Tue, 02 Oct 2018)

  Changed paths:
    A changelog/4056.bugfix.rst
    M src/_pytest/monkeypatch.py
    M src/_pytest/recwarn.py
    M testing/acceptance_test.py
    M testing/code/test_source.py
    M testing/test_cacheprovider.py
    M testing/test_junitxml.py
    M testing/test_monkeypatch.py

  Log Message:
  -----------
  Merge pull request #4056 from nicoddemus/unicode-vars

Ensure Monkeypatch setenv and delenv use bytes keys in Python 2


Compare: https://github.com/pytest-dev/pytest/compare/5e7d427df1b2...25fe3706a4c5
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the pytest-commit mailing list