# AssertionError: assert 5 == 3, 'Expected 5 but got 3'

- **ID:** `python/pytest-assertion-with-message-missing`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The assertion failed and the custom message is not being displayed because pytest doesn't show the message when using plain assert with a tuple.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   with pytest.raises(AssertionError, match='Expected 5 but got 3'):
    assert 5 == 3
   ```
2. **** (99% success)
   ```
   assert 5 == 3, 'Expected 5 but got 3'
   ```

## Dead Ends

- **** — Parentheses create a tuple, which pytest interprets as a comparison, not a message. (90% fail)
- **** — The issue is not the f-string but the tuple; f-string still becomes a tuple element. (85% fail)
