tests: fix some pytest warnings under Python 2
This commit is contained in:
parent
55994609aa
commit
fed59d8374
|
@ -64,7 +64,7 @@ def install_context(request, tmpdir, monkeypatch):
|
|||
monkeypatch.setattr('site.USER_BASE', user_base.strpath)
|
||||
monkeypatch.setattr('site.USER_SITE', user_site.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.
|
||||
dist = Distribution()
|
||||
|
|
Loading…
Reference in New Issue