Back to index

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

Classes

class  Seq1
class  Seq2
class  OperatorTestCase

Functions

def test_main

Function Documentation

def test.test_operator.test_main (   verbose = None)

Definition at line 413 of file test_operator.py.

00413 
00414 def test_main(verbose=None):
00415     import sys
00416     test_classes = (
00417         OperatorTestCase,
00418     )
00419 
00420     support.run_unittest(*test_classes)
00421 
00422     # verify reference counting
00423     if verbose and hasattr(sys, "gettotalrefcount"):
00424         import gc
00425         counts = [None] * 5
00426         for i in range(len(counts)):
00427             support.run_unittest(*test_classes)
00428             gc.collect()
00429             counts[i] = sys.gettotalrefcount()
00430         print(counts)