# ImportError: cannot import name 'app' from 'test_app' (unknown location)

- **ID:** `python/pytest-import-mode-importlib`
- **Domain:** python
- **Category:** module_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

When using importlib import mode, test modules are imported as top-level modules, causing name conflicts or missing imports.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   from mypackage import app
   ```
2. **** (85% success)
   ```
   [pytest]
import-mode = importlib
   ```

## Dead Ends

- **** — This may not be desirable if you need importlib for other reasons. (60% fail)
- **** — This can cause other import issues. (70% fail)
