@@ -133,7 +133,8 @@ def test_future_repr(self):
133133 exc = RuntimeError ()
134134 f_exception = asyncio .Future (loop = self .loop )
135135 f_exception .set_exception (exc )
136- self .assertEqual (repr (f_exception ), '<Future finished exception=RuntimeError()>' )
136+ self .assertEqual (repr (f_exception ),
137+ '<Future finished exception=RuntimeError()>' )
137138 self .assertIs (f_exception .exception (), exc )
138139
139140 def func_repr (func ):
@@ -332,16 +333,21 @@ def memory_error():
332333 if debug :
333334 frame = source_traceback [- 1 ]
334335 regex = (r'^Future exception was never retrieved\n'
335- r'future: <Future finished exception=MemoryError\(\) created at {filename}:{lineno}>\n'
336- r'source_traceback: Object created at \(most recent call last\):\n'
336+ r'future: <Future finished exception=MemoryError\(\) '
337+ r'created at {filename}:{lineno}>\n'
338+ r'source_traceback: Object '
339+ r'created at \(most recent call last\):\n'
337340 r' File'
338341 r'.*\n'
339- r' File "{filename}", line {lineno}, in check_future_exception_never_retrieved\n'
342+ r' File "{filename}", line {lineno}, '
343+ r'in check_future_exception_never_retrieved\n'
340344 r' future = asyncio\.Future\(loop=self\.loop\)$'
341- ).format (filename = re .escape (frame [0 ]), lineno = frame [1 ])
345+ ).format (filename = re .escape (frame [0 ]),
346+ lineno = frame [1 ])
342347 else :
343348 regex = (r'^Future exception was never retrieved\n'
344- r'future: <Future finished exception=MemoryError\(\)>$'
349+ r'future: '
350+ r'<Future finished exception=MemoryError\(\)>$'
345351 )
346352 exc_info = (type (exc ), exc , exc .__traceback__ )
347353 m_log .error .assert_called_once_with (mock .ANY , exc_info = exc_info )
@@ -352,12 +358,14 @@ def memory_error():
352358 r'Future/Task created at \(most recent call last\):\n'
353359 r' File'
354360 r'.*\n'
355- r' File "{filename}", line {lineno}, in check_future_exception_never_retrieved\n'
361+ r' File "{filename}", line {lineno}, '
362+ r'in check_future_exception_never_retrieved\n'
356363 r' future = asyncio\.Future\(loop=self\.loop\)\n'
357364 r'Traceback \(most recent call last\):\n'
358365 r'.*\n'
359366 r'MemoryError$'
360- ).format (filename = re .escape (frame [0 ]), lineno = frame [1 ])
367+ ).format (filename = re .escape (frame [0 ]),
368+ lineno = frame [1 ])
361369 else :
362370 regex = (r'^Future/Task exception was never retrieved\n'
363371 r'Traceback \(most recent call last\):\n'
0 commit comments