diff options
Diffstat (limited to 'test/option/debug-memory.py')
-rw-r--r-- | test/option/debug-memory.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/test/option/debug-memory.py b/test/option/debug-memory.py index bf720cc..9eefe65 100644 --- a/test/option/debug-memory.py +++ b/test/option/debug-memory.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# MIT License # -# __COPYRIGHT__ +# Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -22,8 +23,6 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" - """ Test that the --debug=memory option works. """ @@ -34,18 +33,14 @@ import TestSCons test = TestSCons.TestSCons() -try: - import resource -except ImportError: +if not test.IS_WINDOWS: try: - import win32process - import win32api + import resource except ImportError: - x = "Python version has no 'resource' or 'win32api/win32process' module; skipping tests.\n" + x = "Python version has no 'resource' skipping tests.\n" test.skip_test(x) - test.write('SConstruct', """ DefaultEnvironment(tools=[]) def cat(target, source, env): |