When the Python source file containing the pytest.assume() call is on a different drive than the current directory, os.path.relpath raises an exception. Just use the absolute filename in this case.
Example of pytest failing before applying this patch:
When the Python source file containing the pytest.assume() call is on a different drive than the current directory, os.path.relpath raises an exception. Just use the absolute filename in this case.
Example of pytest failing before applying this patch: