remove extra whitespace

This commit is contained in:
sweeneyde 2020-05-30 15:16:52 -04:00
parent 465e2f7e99
commit b0745097e1
2 changed files with 4 additions and 4 deletions

View File

@ -631,7 +631,7 @@ class BaseExceptionReportingTests:
self.assertEqual(blocks[1], cause_message)
self.check_zero_div(blocks[0])
self.assertIn('inner_raise() # Marker', blocks[2])
def test_rho_context(self):
# Make sure that rho-shaped linked lists of __context__s do
# not get stuck in an infinite loop. See bpo-40696.
@ -643,13 +643,13 @@ class BaseExceptionReportingTests:
x = exc
x.__context__ = x
raise ValueError #rho1
blocks = boundaries.split(self.get_report(cm.exception))
self.assertEqual(len(blocks), 3, blocks)
self.assertIn('RuntimeError #rho1', blocks[0])
self.assertEqual(blocks[1], context_message)
self.assertIn('ValueError', blocks[2])
def test_rho_context_2(self):
with self.assertRaises(ValueError) as cm:
# ValueError -> IndexError -> SyntaxError <=> ZeroDivisionError

View File

@ -173,7 +173,7 @@ _PyErr_SetObject(PyThreadState *tstate, PyObject *exception, PyObject *value)
hare = GET_CONTEXT(hare);
}
/* Now hare is the first intersection.
We want to disconnect hare from its second predecessor.
We want to disconnect hare from its second predecessor.
For example:
A --> B --> C --> D --> E --> C --> ...
becomes