Skip to content

Commit

Permalink
pythongh-107910: Remove not needing newline in error message (pythonG…
Browse files Browse the repository at this point in the history
  • Loading branch information
xncbf authored Aug 14, 2023
1 parent cc2cf85 commit c3887b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_descr.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,8 @@ class EditableScrollablePane(ScrollablePane,EditablePane): pass

def test_mro_disagreement(self):
# Testing error messages for MRO disagreement...
mro_err_msg = """Cannot create a consistent method resolution
order (MRO) for bases """
mro_err_msg = ("Cannot create a consistent method resolution "
"order (MRO) for bases ")

def raises(exc, expected, callable, *args):
try:
Expand Down
2 changes: 1 addition & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2444,7 +2444,7 @@ set_mro_error(PyObject **to_merge, Py_ssize_t to_merge_size, int *remain)
n = PyDict_GET_SIZE(set);

off = PyOS_snprintf(buf, sizeof(buf), "Cannot create a \
consistent method resolution\norder (MRO) for bases");
consistent method resolution order (MRO) for bases");
i = 0;
while (PyDict_Next(set, &i, &k, &v) && (size_t)off < sizeof(buf)) {
PyObject *name = class_name(k);
Expand Down

0 comments on commit c3887b5

Please sign in to comment.