summaryrefslogtreecommitdiff
path: root/rb/config/TestUtil.py
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2007-06-27 13:11:23 +1000
committerMichi Henning <michi@zeroc.com>2007-06-27 13:11:23 +1000
commit11c9552bd13ae9f569dddad69939931349f7ee53 (patch)
tree9952dd7deddf483c616c1116971ebb3e983c0035 /rb/config/TestUtil.py
parentRemove obsolete feature from Windows installers. (diff)
downloadice-11c9552bd13ae9f569dddad69939931349f7ee53.tar.bz2
ice-11c9552bd13ae9f569dddad69939931349f7ee53.tar.xz
ice-11c9552bd13ae9f569dddad69939931349f7ee53.zip
Bug 2270.
Diffstat (limited to 'rb/config/TestUtil.py')
-rw-r--r--rb/config/TestUtil.py30
1 files changed, 6 insertions, 24 deletions
diff --git a/rb/config/TestUtil.py b/rb/config/TestUtil.py
index fc52255998f..ce999429286 100644
--- a/rb/config/TestUtil.py
+++ b/rb/config/TestUtil.py
@@ -99,44 +99,26 @@ def isCygwin():
# The substring on sys.platform is required because some cygwin
# versions return variations like "cygwin_nt-4.01".
- if sys.platform[:6] == "cygwin":
- return 1
- else:
- return 0
+ return sys.platform[:6] == "cygwin"
def isWin32():
- if sys.platform == "win32" or isCygwin():
- return 1
- else:
- return 0
+ return sys.platform == "win32" or isCygwin()
def isSolaris():
- if sys.platform == "sunos5":
- return 1
- else:
- return 0
+ return sys.platform == "sunos5"
def isHpUx():
- if sys.platform == "hp-ux11":
- return 1
- else:
- return 0
+ return sys.platform == "hp-ux11"
def isAIX():
- if sys.platform in ['aix4', 'aix5']:
- return 1
- else:
- return 0
+ return sys.platform in ['aix4', 'aix5']
def isDarwin():
- if sys.platform == "darwin":
- return 1
- else:
- return 0
+ return sys.platform == "darwin"
def closePipe(pipe):