summaryrefslogtreecommitdiff
path: root/testsuite/driver/testutil.py
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krz.gogolewski@gmail.com>2014-10-19 13:41:24 +0200
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>2014-10-19 13:41:24 +0200
commitd576fc38d9493c4979217fa36565f1f97fcc03d4 (patch)
tree01a0f1e2b46d840f94e4062c229f8f949d215b5f /testsuite/driver/testutil.py
parentabfbb0d6aa65bf6f664fd86eecc72bd3a28bb0b9 (diff)
downloadhaskell-d576fc38d9493c4979217fa36565f1f97fcc03d4.tar.gz
Python 3 support, second attempt (Trac #9184)
Summary: This is a fixup of https://phabricator.haskell.org/D233 The only difference is in findTFiles (first commit), which previously broke Windows runner; now I translated literally instead attempting to improve it, and checked it works. Test Plan: I used validate under 2,3 on Linux and under 2 on msys2. On Windows I've seen a large number of failures, but they don't seem to be connected with the patch. Reviewers: hvr, simonmar, thomie, austin Reviewed By: austin Subscribers: thomie, carter, ezyang, simonmar Differential Revision: https://phabricator.haskell.org/D310 GHC Trac Issues: #9184
Diffstat (limited to 'testsuite/driver/testutil.py')
-rw-r--r--testsuite/driver/testutil.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py
index 0738683111..ec45e93987 100644
--- a/testsuite/driver/testutil.py
+++ b/testsuite/driver/testutil.py
@@ -1,39 +1,5 @@
# -----------------------------------------------------------------------------
# Utils
-
-def id(a):
- return a
-
-def eq(x):
- return lambda y,z=x: y == z
-
-def neq(x):
- return lambda y,z=x: y != z
-
-def append(x,y):
- return x + y
-
-def concat(xs):
- return reduce(append,xs,[])
-
-def chop(s):
- if s[len(s)-1:] == '\n':
- return s[:len(s)-1]
- else:
- return s
-
-def all(p,xs):
- for x in xs:
- if not p(x):
- return False
- return True
-
-def elem(xs):
- return lambda x: x in xs
-
-def notElem(xs):
- return lambda x: x not in xs
-
def version_to_ints(v):
return [ int(x) for x in v.split('.') ]