# AssertionError: Test should have been skipped but was not

- **ID:** `python/unittest-skipif-condition-evaluated-false`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The skipIf condition is incorrectly evaluated, causing the test to run when it should be skipped.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   @unittest.skipIf(condition, 'reason')
def test_foo(self):
    ...
   ```
2. **** (90% success)
   ```
   @pytest.mark.skipif(condition, reason='reason')
   ```

## Dead Ends

- **** — This might skip the test when it should run. (60% fail)
- **** — The test will always run, defeating the purpose. (90% fail)
