Skip to content

Commit 48b617b

Browse files
committed
Fix tests
1 parent 5803939 commit 48b617b

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

Lib/test/clinic.test.c

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5084,14 +5084,18 @@ Test_an_metho_arg_named_arg_impl(TestObj *self, int arg)
50845084
Test.__init__
50855085
*args: tuple
50865086
5087-
Varargs init method. For example, nargs is translated to PyTuple_GET_SIZE.
5087+
Varargs init method.
5088+
5089+
For example, nargs is translated to PyTuple_GET_SIZE.
50885090
[clinic start generated code]*/
50895091

50905092
PyDoc_STRVAR(Test___init____doc__,
50915093
"Test(*args)\n"
50925094
"--\n"
50935095
"\n"
5094-
"Varargs init method. For example, nargs is translated to PyTuple_GET_SIZE.");
5096+
"Varargs init method.\n"
5097+
"\n"
5098+
"For example, nargs is translated to PyTuple_GET_SIZE.");
50955099

50965100
static int
50975101
Test___init___impl(TestObj *self, PyObject *args);
@@ -5120,21 +5124,25 @@ Test___init__(PyObject *self, PyObject *args, PyObject *kwargs)
51205124

51215125
static int
51225126
Test___init___impl(TestObj *self, PyObject *args)
5123-
/*[clinic end generated code: output=f172425cec373cd6 input=4b8388c4e6baab6f]*/
5127+
/*[clinic end generated code: output=0e5836c40dbc2397 input=a615a4485c0fc3e2]*/
51245128

51255129
/*[clinic input]
51265130
@classmethod
51275131
Test.__new__
51285132
*args: tuple
51295133
5130-
Varargs new method. For example, nargs is translated to PyTuple_GET_SIZE.
5134+
Varargs new method.
5135+
5136+
For example, nargs is translated to PyTuple_GET_SIZE.
51315137
[clinic start generated code]*/
51325138

51335139
PyDoc_STRVAR(Test__doc__,
51345140
"Test(*args)\n"
51355141
"--\n"
51365142
"\n"
5137-
"Varargs new method. For example, nargs is translated to PyTuple_GET_SIZE.");
5143+
"Varargs new method.\n"
5144+
"\n"
5145+
"For example, nargs is translated to PyTuple_GET_SIZE.");
51385146

51395147
static PyObject *
51405148
Test_impl(PyTypeObject *type, PyObject *args);
@@ -5162,7 +5170,7 @@ Test(PyTypeObject *type, PyObject *args, PyObject *kwargs)
51625170

51635171
static PyObject *
51645172
Test_impl(PyTypeObject *type, PyObject *args)
5165-
/*[clinic end generated code: output=ee1e8892a67abd4a input=a8259521129cad20]*/
5173+
/*[clinic end generated code: output=e6fba0c8951882fd input=8ce30adb836aeacb]*/
51665174

51675175

51685176
/*[clinic input]

Modules/clinic/posixmodule.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/posixmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3295,15 +3295,15 @@ dir_fd, effective_ids, and follow_symlinks may not be implemented
32953295
NotImplementedError.
32963296
32973297
Note that most operations will use the effective uid/gid, therefore this
3298-
routine can be used in a suid/sgid environment to test if the invoking user
3299-
has the specified access to the path.
3298+
routine can be used in a suid/sgid environment to test if the invoking
3299+
user has the specified access to the path.
33003300
33013301
[clinic start generated code]*/
33023302

33033303
static int
33043304
os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd,
33053305
int effective_ids, int follow_symlinks)
3306-
/*[clinic end generated code: output=cf84158bc90b1a77 input=3ffe4e650ee3bf20]*/
3306+
/*[clinic end generated code: output=cf84158bc90b1a77 input=c33565f7584b99e4]*/
33073307
{
33083308
int return_value;
33093309

Tools/clinic/libclinic/_overlong_docstrings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
OVERLONG_SUMMARY = frozenset((
2+
# Lib/test/
3+
'test_preprocessor_guarded_if_e_or_f',
4+
25
# Modules/
36
'_abc._abc_init',
47
'_abc._abc_instancecheck',
@@ -314,7 +317,6 @@
314317
'itertools.compress.__new__',
315318
'math.nextafter',
316319
'os.abort',
317-
'os.access',
318320
'os.chdir',
319321
'os.chflags',
320322
'os.chown',

0 commit comments

Comments
 (0)