summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_atexit.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix a test_atexit failure when run with -3Antoine Pitrou2009-10-141-0/+1
|
* save/restore stdout/stderr instead of relying on __*__ versionsSkip Montanaro2008-10-071-2/+4
|
* Simplify individual tests by defining setUp and tearDown methods.Skip Montanaro2008-10-071-61/+27
|
* backport the atexit test for r66563Benjamin Peterson2008-09-231-0/+13
|
* Fix test_atexit so that it still passes when -3 is supplied. (It was ↵Steven Bethard2008-03-181-2/+2
| | | | catching the warning messages on stdio from using the reload() function.)
* Whitespace normalization.Tim Peters2004-11-071-1/+1
|
* Fix bug 1052242. Also includes rewrite of test case using unittest andSkip Montanaro2004-11-041-52/+86
| | | | avoiding use of popen.
* sys.executable can contain spaces, cater for this when passing it toJack Jansen2003-02-241-2/+2
| | | | os.popen(). Fixes #692222.
* Make the test pass for jython where there are no sys.executable.Finn Bock2002-11-061-3/+7
|
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Reorganized so the test is skipped if os.popen() doesn't exist (in stead of ↵Jack Jansen2002-07-261-4/+4
| | | | failing).
* Use sys.executable to run Python, as suggested by Neal Norwitz.Tim Peters2002-07-171-2/+3
|
* Whitespace normalization.Tim Peters2002-07-161-1/+1
|
* The atexit module effectively turned itself off if sys.exitfunc alreadyTim Peters2002-07-161-11/+48
| | | | | | | | | | | existed at the time atexit first got imported. That's a bug, and this fixes it. Also reworked test_atexit.py to test for this too, and to stop using an "expected output" file, and to test what actually happens at exit instead of just simulating what it thinks atexit will do at exit. Bugfix candidate, but it's messy so I'll backport to 2.2 myself.
* 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.
* Added the atexit module and documentation from Skip MontanaroFred Drake2000-06-281-0/+24
<skip@mojam.com>. Revisions to the markup to make it pass LaTeX, added an index entry and a reference from the sys.exitfunc documentation. This closes SourceForge patch #100620.