Back to index

python3.2  3.2.2
Classes | Functions
test.test_list Namespace Reference

Classes

class  ListTest

Functions

def test_main

Function Documentation

def test.test_list.test_main (   verbose = None)

Definition at line 62 of file test_list.py.

00062 
00063 def test_main(verbose=None):
00064     support.run_unittest(ListTest)
00065 
00066     # verify reference counting
00067     import sys
00068     if verbose and hasattr(sys, "gettotalrefcount"):
00069         import gc
00070         counts = [None] * 5
00071         for i in range(len(counts)):
00072             support.run_unittest(ListTest)
00073             gc.collect()
00074             counts[i] = sys.gettotalrefcount()
00075         print(counts)
00076