@@ -282,7 +282,8 @@ def test_close(self):
282
282
self .assertRaises (TypeError , f .close , 1 )
283
283
284
284
285
- class TestSysRecursionLimitWrappers (unittest .TestCase ):
285
+ class RecursionLimitTest (unittest .TestCase ):
286
+ # Test (un)install_recursionlimit_wrappers and fixdoc.
286
287
287
288
def test_bad_setrecursionlimit_calls (self ):
288
289
run .install_recursionlimit_wrappers ()
@@ -296,12 +297,12 @@ def test_roundtrip(self):
296
297
run .install_recursionlimit_wrappers ()
297
298
self .addCleanup (run .uninstall_recursionlimit_wrappers )
298
299
299
- # check that setting the recursion limit works
300
+ # Check that setting the recursion limit works.
300
301
orig_reclimit = sys .getrecursionlimit ()
301
302
self .addCleanup (sys .setrecursionlimit , orig_reclimit )
302
303
sys .setrecursionlimit (orig_reclimit + 3 )
303
304
304
- # check that the new limit is returned by sys.getrecursionlimit()
305
+ # Check that the new limit is returned by sys.getrecursionlimit().
305
306
new_reclimit = sys .getrecursionlimit ()
306
307
self .assertEqual (new_reclimit , orig_reclimit + 3 )
307
308
@@ -313,6 +314,7 @@ def test_default_recursion_limit_preserved(self):
313
314
self .assertEqual (new_reclimit , orig_reclimit )
314
315
315
316
def test_fixdoc (self ):
317
+ # Put here until better place for miscellaneous test.
316
318
def func (): "docstring"
317
319
run .fixdoc (func , "more" )
318
320
self .assertEqual (func .__doc__ , "docstring\n \n more" )
0 commit comments