◐ Shell
clean mode source ↗

gh-93649: Split unicode tests from _testcapimodule.c & add some more by encukou · Pull Request #95819 · python/cpython

  • Move PyUnicode tests to a separate file
  • Add some more tests for PyUnicode_FromFormat

This is the refactoring & tests for existing functionality from #95505, leaving the change (and its tests) for another PR.

In addition to the changes in #95505, I made CHECK_FORMAT_* to check for SystemError when it gets NULL as the expected result. Some tests need that, as the behavior changed in #95784.