[commit: ghc] master: Basic Python 3 support for testsuite driver (Trac #9184) (084d241)
git at git.haskell.org
git at git.haskell.org
Wed Oct 1 21:41:38 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/084d241b316bfa12e41fc34cae993ca276bf0730/ghc
>---------------------------------------------------------------
commit 084d241b316bfa12e41fc34cae993ca276bf0730
Author: Krzysztof Gogolewski <krz.gogolewski at gmail.com>
Date: Wed Oct 1 23:41:27 2014 +0200
Basic Python 3 support for testsuite driver (Trac #9184)
Summary:
Most of the changes is adaptation of old Python 2 only code.
My priority was not breaking Python 2, and so I avoided bigger
changes to the driver. In particular, under Python 3 the output
is a str and buffering cannot be disabled.
To test, define PYTHON=python3 in testsuite/mk/boilerplate.mk.
Thanks to aspidites <emarshall85 at gmail.com> who provided the initial patch.
Test Plan: validate under 2 and 3
Reviewers: hvr, simonmar, thomie, austin
Reviewed By: thomie, austin
Subscribers: aspidites, thomie, simonmar, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D233
GHC Trac Issues: #9184
>---------------------------------------------------------------
084d241b316bfa12e41fc34cae993ca276bf0730
testsuite/config/ghc | 22 ++--
testsuite/driver/runtests.py | 67 ++++++-----
testsuite/driver/testlib.py | 185 ++++++++++++++---------------
testsuite/driver/testutil.py | 34 ------
testsuite/tests/ffi/should_run/all.T | 10 +-
testsuite/tests/ghci/prog004/prog004.T | 4 +-
testsuite/tests/numeric/should_run/all.T | 8 +-
testsuite/tests/perf/compiler/all.T | 2 +-
testsuite/tests/plugins/all.T | 4 +-
testsuite/tests/th/TH_spliceViewPat/test.T | 6 +-
testsuite/tests/th/all.T | 6 +-
testsuite/tests/typecheck/should_run/all.T | 4 +-
testsuite/timeout/calibrate | 2 +-
testsuite/timeout/timeout.py | 2 +-
utils/fingerprint/fingerprint.py | 8 +-
15 files changed, 169 insertions(+), 195 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 084d241b316bfa12e41fc34cae993ca276bf0730
More information about the ghc-commits
mailing list