The test suite of my tool runs forked processes in a temporary directory (via tempfile.mkdtemp) which does not share the same root directory as the test suite.
This implies all calls are filtered out by default_filter_filename.
Adding the set_top_dir was enough to avoid filtering out.
This is a simple enough way to work around the little naive assumption made by:
TOP_DIR = os.path.join(os.getcwd(), '') # current dir with trailing slash
used by
default_filter_filename
.The test suite of my tool runs forked processes in a temporary directory (via
tempfile.mkdtemp
) which does not share the same root directory as the test suite. This implies all calls are filtered out bydefault_filter_filename
.Adding the
set_top_dir
was enough to avoid filtering out.This is a simple enough way to work around the little naive assumption made by:
Would you see a better solution ?