summaryrefslogtreecommitdiff
path: root/bin/scons-test.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/scons-test.py')
-rw-r--r--bin/scons-test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/scons-test.py b/bin/scons-test.py
index 2191532..046cf4b 100644
--- a/bin/scons-test.py
+++ b/bin/scons-test.py
@@ -15,6 +15,7 @@
# so that problems on different platforms can be identified sooner.
#
+import atexit
import getopt
import imp
import os
@@ -74,7 +75,7 @@ if not os.path.exists(tempdir):
import shutil
os.chdir(startdir)
shutil.rmtree(tempdir)
- sys.exitfunc = cleanup
+ atexit.register(cleanup)
# Fetch the input file if it happens to be across a network somewhere.
# Ohmigod, does Python make this simple...