30 | | 7. Submit for code review. |
31 | | 8. TODO: Not yet possible, but once the ratchet infrastructure is in place, update the should-be-passing-on-Python-3 tests list to include the tests in T plus any other newly passing tests, so that future development doesn't regress Python 3 support. |
| 30 | 7. TODO: Not yet possible, but once the ratchet infrastructure is in place, update the should-be-passing-on-Python-3 tests list to include the tests in T plus any other newly passing tests, so that future development doesn't regress Python 3 support. |
| 31 | 8. Submit for code review. |
| 32 | 9. Check coverage report. If there are uncovered lines, see if you can add tests, or at least file a separate ticket for adding coverage. |
| 49 | === When things get complicated === |
| 50 | |
| 51 | In practice, the methodology above is somewhat idealized: a sufficiently important module might have multiple test files, and might not be easily splittable. |
| 52 | |
| 53 | This is where the test ratchet comes in. |
| 54 | The test ratchet ensures that once a specific test is marked as passing in Python 3, it can't stop passing on Python 3. |
| 55 | As a result, progress in porting need not involve a module being fully ported in one PR, or all tests being made to pass. |
| 56 | |
| 57 | Thus, complex modules can be ported over multiple PRs by just increasing the list of passing tests in each PR, and then only marking the module as fully ported in the final PR. |