[4.6] fixes for python4

This commit is contained in:
Anthony Sottile
2019-08-29 09:48:58 -07:00
parent 117f52dcf3
commit aa79b1c00c
8 changed files with 10 additions and 9 deletions

View File

@@ -209,7 +209,7 @@ class TestEnvironWarnings(object):
VAR_NAME = u"PYTEST_INTERNAL_MY_VAR"
@pytest.mark.skipif(six.PY3, reason="Python 2 only test")
@pytest.mark.skipif(not six.PY2, reason="Python 2 only test")
def test_setenv_unicode_key(self, monkeypatch):
with pytest.warns(
pytest.PytestWarning,
@@ -217,7 +217,7 @@ class TestEnvironWarnings(object):
):
monkeypatch.setenv(self.VAR_NAME, "2")
@pytest.mark.skipif(six.PY3, reason="Python 2 only test")
@pytest.mark.skipif(not six.PY2, reason="Python 2 only test")
def test_delenv_unicode_key(self, monkeypatch):
with pytest.warns(
pytest.PytestWarning,