URL:
https://github.com/freeipa/freeipa/pull/4965
Author: flo-renaud
Title: #4965: [ipa-4-6] ipatests: fix test_sssd.py::TestNestedMembers
Action: opened
PR body:
"""
On RHEL 7.9, python2 is still used and pytest fails in this line:
with open(os.path.join(
tmpdir, 'ssh_priv_key'), 'w') as fp:
because tmpdir is a LocalPath object (built as a pytest fixture) and
os.path.join() supports Path-like objects since python 3.6 only (see
https://docs.python.org/3.7/library/os.path.html#os.path.join for
more info).
The issue doesn't happen upstream because python3 is used.
The fix is very simple and consists in using str(tmpdir).
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4965/head:pr4965
git checkout pr4965