• Jason Tishler's avatar
    Patch #551960: Add check for setrlimit() support · e4a070a3
    Jason Tishler yazdı
    test_resource calls resource.setrlimit() to change the file size limits.
    This fails on Cygwin, which supports setrlimit() and getrlimit(), just not
    changing that particular setting. (The same would apply to any other
    platform that has those functions but not that particular feature.)
    
    Since getrlimit() works and setrlimit() can be used for other reasons, a
    check for ValueError was added to that part of the test.
    e4a070a3
test_resource.py 1.65 KB