Closed
Description
A new feature will be added in Python 3.8 allowing to specify an alternate prefix/location for the pycache files: https://github.com/python/cpython/blame/dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c/Doc/whatsnew/3.8.rst#L70-L83
Pytest should support/use this with its assertion rewriting.