mirror of
https://github.com/python/cpython.git
synced 2025-10-27 16:57:08 +00:00
Fix a buch of shallow test failures.
Note: in test_fileinput.py, two tests are disabled until I figure out how to replace these.
This commit is contained in:
parent
7eaf8223a0
commit
c43e79f3c8
4 changed files with 43 additions and 36 deletions
|
|
@ -705,7 +705,7 @@ get_closed(PyFileIOObject *self, void *closure)
|
|||
static PyObject *
|
||||
get_mode(PyFileIOObject *self, void *closure)
|
||||
{
|
||||
return PyString_FromString(mode_string(self));
|
||||
return PyUnicode_FromString(mode_string(self));
|
||||
}
|
||||
|
||||
static PyGetSetDef fileio_getsetlist[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue