summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_nis.py
Commit message (Collapse)AuthorAgeFilesLines
* Change more tests to use import_module for the modules thatR. David Murray2009-03-301-1/+2
| | | | | should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-261-1/+1
|
* test_nis would fail if test.test_support.verbose was true but NIS was not setBrett Cannon2008-03-191-4/+6
| | | | | | up on the machine. Closes issue2411. Thanks Michael Bishop.
* Convert test_nis to unittest.Georg Brandl2006-10-291-35/+37
|
* Remove passwd.adjunct.byname from list of mapsMartin v. Löwis2006-10-221-0/+7
| | | | for test_nis. Will backport to 2.5.
* 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. :)
* 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.
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Raise 'TestSkipped' (from the test_support) module rather than 'ImportError'Thomas Wouters2000-08-041-2/+2
| | | | | to signify a test that should be marked as 'skipped' rather than 'failed'. Also 'document' it, in README.
* Slight reworking of this test. If nis.maps() gives a nis.error, thenBarry Warsaw1999-01-281-2/+5
| | | | | raise an ImportError if not running verbose. This signals to the regression framework that this test isn't applicable.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-13/+13
|
* Catch nis.error and raise TestFailed instead. This catches theBarry Warsaw1997-05-151-2/+7
| | | | | | problem where Python is configured with the nismodule but NIS isn't installed, or the map names don't correspond to those hardcoded in nismodule.c (which is bogus in and of itself).
* test_rotor.py: New test of the rotor module.Barry Warsaw1996-12-231-4/+2
| | | | | | | test_*: converted to the new test harness. GvR note! test_signal.py works interatively (i.e. when verbose=1) but does not work inside the test harness. It must be a timing issue, but I haven't figured it out yet.
* Rewrite without using try-except to break out of two loops.Guido van Rossum1996-12-111-17/+18
|
* Just test one key/value pair for one NIS map. I.e. don't test themBarry Warsaw1996-12-111-11/+17
| | | | all because it can take a really long time.
* test of the nis moduleBarry Warsaw1996-12-111-0/+19