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@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
Showing
- testsuite/config/ghc 9 additions, 13 deletionstestsuite/config/ghc
- testsuite/driver/runtests.py 39 additions, 28 deletionstestsuite/driver/runtests.py
- testsuite/driver/testlib.py 92 additions, 93 deletionstestsuite/driver/testlib.py
- testsuite/driver/testutil.py 0 additions, 34 deletionstestsuite/driver/testutil.py
- testsuite/tests/ffi/should_run/all.T 5 additions, 5 deletionstestsuite/tests/ffi/should_run/all.T
- testsuite/tests/ghci/prog004/prog004.T 2 additions, 2 deletionstestsuite/tests/ghci/prog004/prog004.T
- testsuite/tests/numeric/should_run/all.T 4 additions, 4 deletionstestsuite/tests/numeric/should_run/all.T
- testsuite/tests/perf/compiler/all.T 1 addition, 1 deletiontestsuite/tests/perf/compiler/all.T
- testsuite/tests/plugins/all.T 2 additions, 2 deletionstestsuite/tests/plugins/all.T
- testsuite/tests/th/TH_spliceViewPat/test.T 3 additions, 3 deletionstestsuite/tests/th/TH_spliceViewPat/test.T
- testsuite/tests/th/all.T 3 additions, 3 deletionstestsuite/tests/th/all.T
- testsuite/tests/typecheck/should_run/all.T 2 additions, 2 deletionstestsuite/tests/typecheck/should_run/all.T
- testsuite/timeout/calibrate 1 addition, 1 deletiontestsuite/timeout/calibrate
- testsuite/timeout/timeout.py 1 addition, 1 deletiontestsuite/timeout/timeout.py
- utils/fingerprint/fingerprint.py 5 additions, 3 deletionsutils/fingerprint/fingerprint.py
Loading
Please register or sign in to comment