summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grp.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-1/+3
|
* group ids and user ids can be longs now (#17531)Benjamin Peterson2013-03-231-1/+1
|
* Merged revisions 87238 via svnmerge fromR. David Murray2010-12-141-2/+6
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87238 | r.david.murray | 2010-12-14 11:20:53 -0500 (Tue, 14 Dec 2010) | 7 lines #775964: skip YP/NIS entries instead of failing the test Also includes doc updates mentioning that these entries may not be retrievable via getgrnam and getgrgid. Patch by Bobby Impollonia. ........
* remove the svn:executable property from files that don't have shebang linesBenjamin Peterson2010-03-051-0/+0
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-4/+4
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-4/+4
|
* Add import_function method to test.test_support, and modify a number ofR. David Murray2009-03-301-1/+2
| | | | | | | | tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on.
* Replace all map(None, a) with list(a).Georg Brandl2008-07-181-2/+2
|
* I'm tired of these tests breaking at Google due to our large number ofGuido van Rossum2008-01-231-0/+3
| | | | | users and groups in LDAP/NIS. So I'm limiting the extra-heavy part of the tests to passwd/group files with at most 1000 entries.
* Change test_values so that it compares the lowercasing of group names since ↵Brett Cannon2006-05-251-1/+4
| | | | | | getgrall() can return all lowercase names while getgrgid() returns proper casing. Discovered on Ubuntu 5.04 (custom).
* skip NIS entries, empty entries, etcFredrik Lundh2005-12-121-0/+2
|
* 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