[Python-Dev] test_pwd is really slow (original) (raw)
Guido van Rossum guido at python.org
Mon Jul 12 18:26:15 CEST 2004
- Previous message: [Python-Dev] test_pwd is really slow
- Next message: [Python-Dev] test_pwd is really slow
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I've been having trouble running the tests lately, because testpwd is really slow. It's a fairly trivial set of tests -- checking the types of return values and cross-checking getpwall() vs. getpwnam()/getpwuid(). The problem is if your password database is provided by LDAP and is really big, the test takes an impractically long time.
Would anyone object if I changed the test suite to require some resource to run testpwd? Or should I just make some local change to disable it?
How about instead limiting the number of entries checked to the first 100? Try changing
entries = pwd.getpwall()
into
entries = pwd.getpwall()[:100]
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] test_pwd is really slow
- Next message: [Python-Dev] test_pwd is really slow
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]