summaryrefslogtreecommitdiffstats
path: root/test/option
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-10-04 00:27:37 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2020-10-04 00:27:37 (GMT)
commit06c0204e85ecbb124e72b27f4d23483ab3bd7c35 (patch)
treedb588f6dea76ec5685aeaf0a0abb760fb9358b35 /test/option
parentcece33add5c095c70d27c8e5897daaac90ff382d (diff)
downloadSCons-06c0204e85ecbb124e72b27f4d23483ab3bd7c35.zip
SCons-06c0204e85ecbb124e72b27f4d23483ab3bd7c35.tar.gz
SCons-06c0204e85ecbb124e72b27f4d23483ab3bd7c35.tar.bz2
remove win32api from test
Diffstat (limited to 'test/option')
-rw-r--r--test/option/debug-memory.py15
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):