TypeError: attrib() got an unexpected keyword argument 'convert' : <p>This error occurred during automated testing of a python project on the CI server using <code>pytest</code>. I'm using <code>pytest==4.0.2</code>. This error only just started to occur, previous pipelines seem to work fine.</p>

<p>The full error:</p>

<pre><code>File "/usr/local/lib/python3.7/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory
    lambda p: Path(os.path.abspath(six.text_type(p)))
TypeError: attrib() got an unexpected keyword argument 'convert'
</code></pre>
