class documentation

class FakeResourceModule:

Constructor: FakeResourceModule(limit)

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):

Undocumented

def getrlimit(self, no):

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

RLIMIT_NOFILE: int =

Undocumented

Value
1
_limit =

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