]> granicus.if.org Git - python/commit
The atexit module effectively turned itself off if sys.exitfunc already
authorTim Peters <tim.peters@gmail.com>
Tue, 16 Jul 2002 19:30:59 +0000 (19:30 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 16 Jul 2002 19:30:59 +0000 (19:30 +0000)
commit012b69cb30761f500103ec66cb8f8229ca017a94
tree7a9afcb1f28b4fe37984dbe20f211e69211af6a0
parent32a03967b7b233d168d9c18d53436bc98a25edf9
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.

Bugfix candidate, but it's messy so I'll backport to 2.2 myself.
Lib/atexit.py
Lib/test/output/test_atexit [deleted file]
Lib/test/test_atexit.py