Some test modules (at least one) take a long time to import #7914
Labels
bug
Something isn't working
mod: fake_provider
Related to the fake_provider module and fake backends
Environment
What is happening?
Some test modules (maybe just one) take a long time to import. I've generally noticed that test discovery in stestr (which scans the
test/python
directory and imports every module namedtest_*
) has been getting increasingly slow lately. When working on #7912 in particular I found that importingtest.python.providers.test_fake_backends
alone takes 13sec to import. I assume this is ddt and other module level processing that is happening when it is imported. This is problematic especially when importing this one file takes ~20% of the time a full test run takes for me locally. There are likely other offenders in the test suite causing a similar slowdown.How can we reproduce the issue?
python -c "test.python.providers.test_fake_backends"
What should happen?
The import should be faster
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: