summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_getopt.py
Commit message (Collapse)AuthorAgeFilesLines
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-5/+5
|
* Make test.test_support.EnvironmentVarGuard behave like a dictionary.Walter Dörwald2009-05-011-9/+7
| | | | | All changes are mirrored to the underlying os.environ dict, but rolled back on exit from the with block.
* #4458: recognize "-" as an argument, not a malformed option in gnu_getopt().Georg Brandl2008-12-051-0/+5
|
* Replaced import of the 'new' module with 'types' module and added a ↵Christian Heimes2007-11-271-2/+2
| | | | deprecation warning to the 'new' module.
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-21/+21
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Make test_getopt use unittest.Collin Winter2007-04-041-174/+173
|
* avoid fragility: make sure POSIXLY_CORRECT is completely controlledFred Drake2004-08-031-1/+10
| | | | for the tests, and restored properly when done
* nice tests dont leave little suprises in the environAnthony Baxter2004-08-031-0/+1
|
* Use test_support.run_doctest()Raymond Hettinger2003-05-171-3/+3
|
* Add doctest for example in the library reference.Raymond Hettinger2003-04-291-0/+40
|
* 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. :)
* Patch 473512: add GNU style scanning as gnu_getopt.Martin v. Löwis2002-06-061-0/+20
|
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-32/+32
| | | | | | | 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.
* Add test case for SF bugTim Peters2000-12-271-0/+9
| | | | https://sourceforge.net/bugs/?func=detailbug&bug_id=126863&group_id=5470
* Don't reference a module named test.test_support. Always use plainGuido van Rossum2000-08-211-1/+1
| | | | test_support. Also fixed the expected output.
* David Goodger's new getopt test module (thanks, David!).Tim Peters2000-08-201-0/+101
https://sourceforge.net/patch/?func=detailpatch&patch_id=101110&group_id=5470 Accepted as-is, except for purging an "import *".