@@ -336,10 +336,10 @@ def strip_comments(s):
336336 return re .sub (r'\s+#.*' , '' , s )
337337
338338
339- def test_reallocations (capture , msg ):
339+ def test_reallocation_a (capture , msg ):
340340 """When the constructor is overloaded, previous overloads can require a preallocated value.
341341 This test makes sure that such preallocated values only happen when they might be necessary,
342- and that they are deallocated properly"""
342+ and that they are deallocated properly. """
343343
344344 pytest .gc_collect ()
345345
@@ -353,6 +353,9 @@ def test_reallocations(capture, msg):
353353 ~NoisyAlloc()
354354 noisy delete
355355 """
356+
357+
358+ def test_reallocation_b (capture , msg ):
356359 with capture :
357360 create_and_destroy (1.5 )
358361 assert msg (capture ) == strip_comments ("""
@@ -365,6 +368,8 @@ def test_reallocations(capture, msg):
365368 noisy delete # operator delete
366369 """ )
367370
371+
372+ def test_reallocation_c (capture , msg ):
368373 with capture :
369374 create_and_destroy (2 , 3 )
370375 assert msg (capture ) == strip_comments ("""
@@ -375,6 +380,8 @@ def test_reallocations(capture, msg):
375380 noisy delete # operator delete
376381 """ )
377382
383+
384+ def test_reallocation_d (capture , msg ):
378385 with capture :
379386 create_and_destroy (2.5 , 3 )
380387 assert msg (capture ) == strip_comments ("""
@@ -386,6 +393,8 @@ def test_reallocations(capture, msg):
386393 noisy delete # operator delete
387394 """ )
388395
396+
397+ def test_reallocation_e (capture , msg ):
389398 with capture :
390399 create_and_destroy (3.5 , 4.5 )
391400 assert msg (capture ) == strip_comments ("""
@@ -397,6 +406,8 @@ def test_reallocations(capture, msg):
397406 noisy delete # operator delete
398407 """ )
399408
409+
410+ def test_reallocation_f (capture , msg ):
400411 with capture :
401412 create_and_destroy (4 , 0.5 )
402413 assert msg (capture ) == strip_comments ("""
@@ -409,6 +420,8 @@ def test_reallocations(capture, msg):
409420 noisy delete # operator delete
410421 """ )
411422
423+
424+ def test_reallocation_g (capture , msg ):
412425 with capture :
413426 create_and_destroy (5 , "hi" )
414427 assert msg (capture ) == strip_comments ("""
0 commit comments