Commit 57938024 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge pull request #1906 from benoit-pierre/fix_pytest_py2_warnings

tests: fix some pytest warnings under Python 2
parents 55994609 fed59d83
...@@ -64,7 +64,7 @@ def install_context(request, tmpdir, monkeypatch): ...@@ -64,7 +64,7 @@ def install_context(request, tmpdir, monkeypatch):
monkeypatch.setattr('site.USER_BASE', user_base.strpath) monkeypatch.setattr('site.USER_BASE', user_base.strpath)
monkeypatch.setattr('site.USER_SITE', user_site.strpath) monkeypatch.setattr('site.USER_SITE', user_site.strpath)
monkeypatch.setattr('sys.path', sys.path + [install_dir.strpath]) monkeypatch.setattr('sys.path', sys.path + [install_dir.strpath])
monkeypatch.setenv('PYTHONPATH', os.path.pathsep.join(sys.path)) monkeypatch.setenv(str('PYTHONPATH'), str(os.path.pathsep.join(sys.path)))
# Set up the command for performing the installation. # Set up the command for performing the installation.
dist = Distribution() dist = Distribution()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment