Message14344
Logged In: YES
user_id=21627
The rationale of the line is explained in the comment: The
code tests whether the limit is a really large number, i.e.
whether represenation of large limits works.
Unfortunately, it doesn't (which is a separate issue): On
Linux, RLIM_INFINITY is reported as -1. This comes from
RLIM_INFINITY being the larges unsigned long long number,
i.e. 0xffffffffffffffffuLL. The resource module represents
this incorrectly.
I think there is no way to verify that Python computes the
real limit correctly (unless we invoke the shell's ulimit
for comparison). So you could weaken the test to verify that
the limit is non-negative (and, as a side effect, verify
that it doesn't raise an exception).
If you do so, you'll also have to fix the implementation, so
that the weakened-strengthened test passes on Linux. |
|
Date |
User |
Action |
Args |
2007-08-23 14:10:38 | admin | link | issue678264 messages |
2007-08-23 14:10:38 | admin | create | |
|