Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_builtin Namespace Reference

Classes

class  Squares
class  StrSquares
class  BitBucket
class  TestFailingBool
class  TestFailingIter
class  BuiltinTest
class  TestSorted

Functions

def test_main

Variables

list test_conv_no_sign
list test_conv_sign

Function Documentation

def test.test_builtin.test_main (   verbose = None)

Definition at line 1362 of file test_builtin.py.

01362 
01363 def test_main(verbose=None):
01364     test_classes = (BuiltinTest, TestSorted)
01365 
01366     run_unittest(*test_classes)
01367 
01368     # verify reference counting
01369     if verbose and hasattr(sys, "gettotalrefcount"):
01370         import gc
01371         counts = [None] * 5
01372         for i in range(len(counts)):
01373             run_unittest(*test_classes)
01374             gc.collect()
01375             counts[i] = sys.gettotalrefcount()
01376         print(counts)
01377 

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 [
00002         ('0', 0),
00003         ('1', 1),
00004         ('9', 9),
00005         ('10', 10),
00006         ('99', 99),
00007         ('100', 100),
00008         ('314', 314),
00009         (' 314', 314),
00010         ('314 ', 314),
00011         ('  \t\t  314  \t\t  ', 314),
00012         (repr(sys.maxsize), sys.maxsize),
00013         ('  1x', ValueError),
00014         ('  1  ', 1),
00015         ('  1\02  ', ValueError),
00016         ('', ValueError),
00017         (' ', ValueError),
00018         ('  \t\t  ', ValueError),
00019         (str(b'\u0663\u0661\u0664 ','raw-unicode-escape'), 314),
00020         (chr(0x200), ValueError),
00021 ]

Definition at line 55 of file test_builtin.py.

Initial value:
00001 [
00002         ('0', 0),
00003         ('1', 1),
00004         ('9', 9),
00005         ('10', 10),
00006         ('99', 99),
00007         ('100', 100),
00008         ('314', 314),
00009         (' 314', ValueError),
00010         ('314 ', 314),
00011         ('  \t\t  314  \t\t  ', ValueError),
00012         (repr(sys.maxsize), sys.maxsize),
00013         ('  1x', ValueError),
00014         ('  1  ', ValueError),
00015         ('  1\02  ', ValueError),
00016         ('', ValueError),
00017         (' ', ValueError),
00018         ('  \t\t  ', ValueError),
00019         (str(b'\u0663\u0661\u0664 ','raw-unicode-escape'), 314),
00020         (chr(0x200), ValueError),
00021 ]

Definition at line 77 of file test_builtin.py.