]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
The atexit module effectively turned itself off if sys.exitfunc already
authorTim Peters <tim.peters@gmail.com>
Tue, 16 Jul 2002 20:09:08 +0000 (20:09 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 16 Jul 2002 20:09:08 +0000 (20:09 +0000)
commita01421bbc73e08243f0fc0494fc5e5f95f5f9393
tree6a869c1240a607666f61e98b24585e349653e397
parent634abb860729c6925fed275b149d8a570cc06c59
The atexit module effectively turned itself off if sys.exitfunc already
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.
Lib/atexit.py
Lib/test/output/test_atexit [deleted file]
Lib/test/test_atexit.py