summaryrefslogtreecommitdiff
path: root/bin/scons-test.py
diff options
context:
space:
mode:
authorLuca Falavigna <dktrkranz@debian.org>2013-03-11 22:33:29 +0100
committerLuca Falavigna <dktrkranz@debian.org>2013-03-11 22:33:29 +0100
commite5a4f8c6dbf0dcfc74bfd8ba99099d9fe1064642 (patch)
treecf4f35e2a3b56525cf8c19a1b8fb3147d36f0229 /bin/scons-test.py
parent2323daae4add07272c0f4feb9243c352a9ca4b18 (diff)
parentcb3425abe0bc2d05caf401ca24b82a25a81f009d (diff)
Merge tag 'upstream/2.3.0'
Upstream version 2.3.0
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...