◐ Shell
clean mode source ↗

[3.12] gh-111495: Add PyFile tests (#129449) (#129477) by vstinner · Pull Request #129501 · python/cpython

gh-111495: Add PyFile tests (#129449)

Add tests for the following functions in test_capi.test_file:

  • PyFile_FromFd()
  • PyFile_GetLine()
  • PyFile_NewStdPrinter()
  • PyFile_WriteObject()
  • PyFile_WriteString()
  • PyObject_AsFileDescriptor()

Remove test_embed.StdPrinterTests which became redundant.

(cherry picked from commit 4ca9fc0) (cherry picked from commit 9a59a51)