Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remote 'a' before 'float is required'
  • Loading branch information
Windsooon committed Jun 4, 2019
commit 54cd9c8b0abf2da1dc48b64aa0555f948b4e57cf
2 changes: 1 addition & 1 deletion Lib/test/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_sleep(self):

def test_sleep_invalid(self):
with self.assertRaisesRegex(
TypeError, r'an integer or a float is required \(got type str\)'):
TypeError, r'an integer or float is required \(got type str\)'):
time.sleep('foo')

def test_strftime(self):
Expand Down
2 changes: 1 addition & 1 deletion Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ _PyLong_FromNbIndexOrNbInt(PyObject *integral)
nb = Py_TYPE(integral)->tp_as_number;
if (nb == NULL || (nb->nb_index == NULL && nb->nb_int == NULL)) {
PyErr_Format(PyExc_TypeError,
"an integer or a float is required (got type %.200s)",
"an integer or float is required (got type %.200s)",
Py_TYPE(integral)->tp_name);
return NULL;
}
Expand Down