Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_tempfile.NulledModules Class Reference

List of all members.

Public Member Functions

def __init__
def __enter__
def __exit__

Public Attributes


Detailed Description

Definition at line 912 of file

Constructor & Destructor Documentation

def test.test_tempfile.NulledModules.__init__ (   self,

Definition at line 913 of file

00914     def __init__(self, *modules):
00915         self.refs = [mod.__dict__ for mod in modules]
00916         self.contents = [ref.copy() for ref in self.refs]

Here is the caller graph for this function:

Member Function Documentation

Definition at line 917 of file

00918     def __enter__(self):
00919         for d in self.refs:
00920             for key in d:
00921                 d[key] = None

def test.test_tempfile.NulledModules.__exit__ (   self,

Definition at line 922 of file

00923     def __exit__(self, *exc_info):
00924         for d, c in zip(self.refs, self.contents):
00925             d.clear()
00926             d.update(c)

Here is the caller graph for this function:

Member Data Documentation

Definition at line 915 of file

Definition at line 914 of file

The documentation for this class was generated from the following file: