Back to index

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

Classes

class  TestIsInstanceExceptions
class  TestIsSubclassExceptions
class  AbstractClass
class  AbstractInstance
class  Super
class  Child
class  NewSuper
class  NewChild
class  TestIsInstanceIsSubclass

Functions

def blowstack
def test_main

Variables

tuple AbstractSuper = AbstractClass(bases=())
tuple AbstractChild = AbstractClass(bases=(AbstractSuper,))

Function Documentation

def test.test_isinstance.blowstack (   fxn,
  arg,
  compare_to 
)

Definition at line 271 of file test_isinstance.py.

00271 
00272 def blowstack(fxn, arg, compare_to):
00273     # Make sure that calling isinstance with a deeply nested tuple for its
00274     # argument will raise RuntimeError eventually.
00275     tuple_arg = (compare_to,)
00276     for cnt in range(sys.getrecursionlimit()+5):
00277         tuple_arg = (tuple_arg,)
00278         fxn(arg, tuple_arg)
00279 


Definition at line 280 of file test_isinstance.py.

00280 
00281 def test_main():
00282     support.run_unittest(
00283         TestIsInstanceExceptions,
00284         TestIsSubclassExceptions,
00285         TestIsInstanceIsSubclass
00286     )
00287 


Variable Documentation

Definition at line 173 of file test_isinstance.py.

Definition at line 171 of file test_isinstance.py.