pytest2/src
Bruno Oliveira 747b8372ea Try to import module before creating dummy modules with 'importmode=importlib'
The dummy modules we introduce in `insert_missing_modules` (due to #7856 and #7859)
would cause problems if the dummy modules actually end up replacing modules
which could be imported normally because they are available in `PYTHONPATH`.

Now we attempt to first import the module via normal mechanisms, and only
introduce the dummy modules if the intermediary modules don't actually exist.

Close #9645
2022-02-14 09:42:05 -03:00
..
_pytest Try to import module before creating dummy modules with 'importmode=importlib' 2022-02-14 09:42:05 -03:00
pytest pytest: bring back direct imports of TempdirFactory, Testdir 2021-12-25 13:27:02 +02:00