class documentation

class FakeResourceModule: (source)

View In Hierarchy

Fake version of resource which hard-codes a particular rlimit for maximum open files.

Method __init__ Undocumented
Method getrlimit A fake of resource.getrlimit which returns a pre-determined result.
Constant RLIMIT_NOFILE Undocumented
Instance Variable _limit The value to return for the hard limit of number of open files.
def __init__(self, limit): (source)

Undocumented

def getrlimit(self, no): (source)

A fake of resource.getrlimit which returns a pre-determined result.

RLIMIT_NOFILE: int = (source)

Undocumented

Value
1

The value to return for the hard limit of number of open files.