You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Or for directory: `python3 scripts/update_lib auto-mark Lib/test/test_$ARGUMENTS/ --mark-failure`
54
66
- This will:
55
67
- Run tests and mark ALL failing tests with `@unittest.expectedFailure`
56
68
- Remove `@unittest.expectedFailure` from tests that now pass
57
69
- **Note**: The `--mark-failure` flag marks all failures including regressions. Review the changes before committing.
58
70
59
-
4.**Handle panics manually**
71
+
5. **Handle panics manually**
60
72
- If any tests cause panics/crashes (not just assertion failures), they need `@unittest.skip` instead:
61
73
```python
62
74
@unittest.skip("TODO: RUSTPYTHON; panics with 'index out of bounds'")
@@ -65,7 +77,7 @@ This helps improve the tooling for future upgrades.
65
77
```
66
78
- auto-mark cannot detect panics automatically - check the test output for crash messages
67
79
68
-
5. **Handle class-specific failures**
80
+
6. **Handle class-specific failures**
69
81
- If a test fails only in the C implementation (TestCFoo) but passes in the Python implementation (TestPyFoo), or vice versa, move the marker to the specific subclass:
70
82
```python
71
83
# Base class - no marker here
@@ -82,9 +94,9 @@ This helps improve the tooling for future upgrades.
0 commit comments