# AssertionError: assert True == False (pytest assertion rewriting is disabled for this module)

- **ID:** `python/pytest-assertion-rewriting-disabled`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The test module is not being processed by pytest's assertion rewriting, often because it's in a directory with __init__.py or not in a test file.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Move test file to a directory without __init__.py and name it test_*.py
   ```
2. **** (90% success)
   ```
   Create an empty conftest.py in the test directory.
   ```

## Dead Ends

- **** — This actually can disable assertion rewriting; removing it is better. (80% fail)
- **** — The assertion still fails, but the message is less informative. (60% fail)
