summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2014-12-22 17:22:52 +0000
committerRussel Winder <russel@winder.org.uk>2014-12-22 17:22:52 +0000
commitb05b2dd7d077850d15b4c8dc35bc3dcbaf79c05f (patch)
tree2875326bbba7f1c8e11652056dbde2fbf4c0a9e1
parent289db3e1c70591260d2673e693f5e27d27f67fce (diff)
downloadscons-b05b2dd7d077850d15b4c8dc35bc3dcbaf79c05f.tar.gz
Replace UNIX specific code with cross-platform code.
-rw-r--r--test/D/MixedDAndC/Common/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/D/MixedDAndC/Common/common.py b/test/D/MixedDAndC/Common/common.py
index bd761d10..b356411d 100644
--- a/test/D/MixedDAndC/Common/common.py
+++ b/test/D/MixedDAndC/Common/common.py
@@ -29,8 +29,8 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from os import uname
from os.path import abspath, dirname
+from platform import machine
import sys
sys.path.insert(1, abspath(dirname(__file__) + '/../../Support'))
@@ -48,7 +48,7 @@ def testForTool(tool):
test.run()
- if uname()[4] not in ('x86_64',):
+ if machine() in ('i386',):
test.fail_test('64-bit mode not compiled in' not in test.stdout())
test.pass_test()