Skip to content

gh-111495: Add tests for PyFile C API #124915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Modules/_testcapi/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
#include "util.h"


static PyObject *
test_file_from_fd(PyObject *self, PyObject *args)
{

}

Check warning on line 9 in Modules/_testcapi/file.c

View workflow job for this annotation

GitHub Actions / Address sanitizer

no return statement in function returning non-void [-Wreturn-type]

Check warning on line 9 in Modules/_testcapi/file.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

no return statement in function returning non-void [-Wreturn-type]

Check warning on line 9 in Modules/_testcapi/file.c

View workflow job for this annotation

GitHub Actions / Windows / build (arm64)

'test_file_from_fd': must return a value [D:\a\cpython\cpython\PCbuild\_testcapi.vcxproj]

Check warning on line 9 in Modules/_testcapi/file.c

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build (arm64)

'test_file_from_fd': must return a value [D:\a\cpython\cpython\PCbuild\_testcapi.vcxproj]

Check warning on line 9 in Modules/_testcapi/file.c

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'test_file_from_fd': must return a value [D:\a\cpython\cpython\PCbuild\_testcapi.vcxproj]

Check warning on line 9 in Modules/_testcapi/file.c

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'test_file_from_fd': must return a value [D:\a\cpython\cpython\PCbuild\_testcapi.vcxproj]

Check warning on line 9 in Modules/_testcapi/file.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-22.04)

no return statement in function returning non-void [-Wreturn-type]

Check warning on line 9 in Modules/_testcapi/file.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-22.04)

no return statement in function returning non-void [-Wreturn-type]

static PyMethodDef test_methods[] = {
{"", test_file_from_fd, METH_VARARGS},
{NULL},
};

Expand Down
Loading