summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grp.py
Commit message (Collapse)AuthorAgeFilesLines
* On Mac OS X pwd.getpwall() might return the tuplesWalter Dörwald2003-05-051-21/+2
| | | | | | | | | | | | ('pgsql', '*', 252, []) and ('postgres', '*', 252, ['skip']), but pwd.getgrgid(252) might return ('pgsql', '', 252, ['skip']). Drop the test that tried to find a tuple similar to the one returned from pwd.getgrgid() among those for the same gid returned by pwd.getgrall(), as the only working definition of 'similar' seems to be 'has the same gid'. This check can be done more directly. This should fix SF bug #732783.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-3/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Max OS X returns "*" as the password in grp.getgrall()Walter Dörwald2003-04-231-22/+37
| | | | | and "" in grep.getgrgid(). Adjust the test to work around this problem. This should fix SF bug #724771.
* Change test_pwd and test_grp so they can handle duplicate userWalter Dörwald2003-04-221-2/+4
| | | | and group names. This should fix SF bug #724771.
* Fix copy & paste error in comment.Walter Dörwald2003-04-151-1/+1
|
* Fix the test so that it works even when /etc/group has two entriesWalter Dörwald2003-04-151-1/+12
| | | | for the same gid.
* Port test_pwd.py to PyUnit. Check that getpwall() andWalter Dörwald2003-04-151-10/+60
| | | | | | | | | | | | getpwnam()/getpwuid() return consistent data. Change test_grp to check that getgrall() and getgrnam()/getgrgid() return consistent data. Add error checks similar to test_pwd.py. Port test___all__.py to PyUnit. From SF patch #662807.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+6
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Simple conversion to PyUnit.Fred Drake2001-05-181-23/+20
|
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-1/+1
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-4/+4
|
* Believe it or not, some people have an empty group database.Guido van Rossum1997-12-151-7/+10
| | | | Prevent the test from failing there.
* Many scripts, but small changes. Update the way the scripts obtain theRoger E. Masse1996-12-201-4/+2
| | | | | | | | | | | | | | | | 'verbose' flag ala GvR updated test harness architecture. Old way: verbose = 0 if __name__ == '__main__': verbose = 1 New way: from test_support import verbose Some other small readablility and functionality updates.
* Test script for the UNIX group file access module (grp)Roger E. Masse1996-12-181-0/+24