[Python-Dev] a bunch of Patch reviews

Tim Peters tim.peters at gmail.com
Wed Jan 19 01:03:17 CET 2005


[Martin asks whether Irmen wants to be a tracker admin on SF]

[Irmen de Jong]
> That sounds very convenient, thanks.
> Does the status of 'python project member' come with
> certain expectations that must be complied with ? ;-)

If you're using Python, you're already required to comply with all of
Guido's demands, this would just make it more official.  Kinda like
the difference in sanctifying cohabitation with a marriage ceremony
<wink>.

OK, really, the minimum required of Python project members is that
they pay some attention to Python-Dev.

>>> 2- As shadow passwords can only be retrieved when
>>>    you are root, is a unit test module even useful?

>> Probably not. Alternatively, introduce a "root" resource,
>> and make that test depend on the presence of the root resource.
 
> I'm not sure what this "resource" is actually.
> I have seen them pass on my screen when executing the
> regression tests (resource "network" is not enabled, etc)
> but never paid much attention to them.
> Are they used to select optional parts of the test suite
> that can only be run in certain conditions?

That's right, where "the condition" is precisely that you tell
regrtest.py to enable a (one or more) named resource.  There's no
intelligence involved.  "Resource names" are arbitrary, and can be
passed to regrtest.py's -u argument.  See regrtest's docstring for
details.  For example, to run the tests that require the network
resource, pass "-u network".  Then it will run network tests, and
regardless of whether a network is actually available.  Passing "-u
all" makes it try to run all tests.


More information about the Python-Dev mailing list