summaryrefslogtreecommitdiff
path: root/testsuite/driver
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-02-11 13:48:59 +0000
committerIan Lynagh <ian@well-typed.com>2013-02-11 13:48:59 +0000
commit240da00652d50fcd10f3062629cb561b04d19646 (patch)
tree0b063a86e0c41a642478a4a16adf5b5f88508988 /testsuite/driver
parent3d94d01a9e6618e4ad82b1ad6386b0620538683d (diff)
downloadhaskell-240da00652d50fcd10f3062629cb561b04d19646.tar.gz
Replace 'if_os' and 'unless_os' with 'opsys'
The name 'os' clashes with a python library
Diffstat (limited to 'testsuite/driver')
-rw-r--r--testsuite/driver/testlib.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 985a7b3b4f..08df6319f9 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -313,17 +313,8 @@ def unless(b, f):
def platform( plat ):
return config.platform == plat
-def if_os( os, f ):
- if config.os == os:
- return f
- else:
- return normal
-
-def unless_os( os, f ):
- if config.os == os:
- return normal
- else:
- return f
+def opsys( os ):
+ return config.os == os
def if_arch( arch, f ):
if config.arch == arch: