diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-02-08 00:38:42 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-02-08 00:38:42 +0000 |
commit | 7d734542a06213d4723c8074f2f7873cee5f1bf0 (patch) | |
tree | 60e2b2c04ba8982e9cfb2f9cf8d098e3b1a16eea /testsuite/driver | |
parent | d34f3e856b90de8e9ebbe14828c26ceb3c80ebdb (diff) | |
download | haskell-7d734542a06213d4723c8074f2f7873cee5f1bf0.tar.gz |
Replace 'if_platform' and 'unless_platform' with 'platform'
Diffstat (limited to 'testsuite/driver')
-rw-r--r-- | testsuite/driver/testlib.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 4c9b2c269e..aa601f786a 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -312,17 +312,8 @@ def when(b, f): def unless(b, f): return when(not b, f) -def if_platform( plat, f ): - if config.platform == plat: - return f - else: - return normal - -def unless_platform( plat, f ): - if config.platform != plat: - return f - else: - return normal +def platform( plat ): + return config.platform == plat def if_os( os, f ): if config.os == os: |