diff options
author | anatoly techtonik <techtonik@gmail.com> | 2012-12-19 19:41:31 (GMT) |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2012-12-19 19:41:31 (GMT) |
commit | e7b9e30c3f5e4b80c4506bb0eb2fe5847c2ac2f8 (patch) | |
tree | 5b53542690a04881550fcfe095358d5ccc12602f /src/engine/SCons/cppTests.py | |
parent | 30da57759fda031e95552e6b90fefa4252f90cad (diff) | |
download | SCons-e7b9e30c3f5e4b80c4506bb0eb2fe5847c2ac2f8.zip SCons-e7b9e30c3f5e4b80c4506bb0eb2fe5847c2ac2f8.tar.gz SCons-e7b9e30c3f5e4b80c4506bb0eb2fe5847c2ac2f8.tar.bz2 |
Cleanup replacement of sys.exitfunc with atexit (Python 2+)
Diffstat (limited to 'src/engine/SCons/cppTests.py')
-rw-r--r-- | src/engine/SCons/cppTests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/cppTests.py b/src/engine/SCons/cppTests.py index bfb0b46..2f2025b 100644 --- a/src/engine/SCons/cppTests.py +++ b/src/engine/SCons/cppTests.py @@ -23,6 +23,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" +import atexit import sys import unittest @@ -608,7 +609,7 @@ def _clean(): if os.path.exists(dir): shutil.rmtree(dir) -sys.exitfunc = _clean +atexit.register(_clean) class fileTestCase(unittest.TestCase): cpp_class = cpp.DumbPreProcessor |