With the new build system, importing test files to retrieve the functions used to generate the baseline no longer works.
module = importlib.import_module(mn)
We must add now:
sys.path.insert(0, "")
to allow local import but there is a directory called io which collide with the io standard library ...
One way is to import from tests directory instead of importing:
With the new build system, importing test files to retrieve the functions used to generate the baseline no longer works.
We must add now:
to allow local import but there is a directory called
io
which collide with theio
standard library ... One way is to import from tests directory instead of importing:use
It can be done by changing the current directory: