[GHC] #12934: Testsuite driver buffering behavior has changed with Python 3

GHC ghc-devs at haskell.org
Wed Dec 7 00:46:55 UTC 2016


#12934: Testsuite driver buffering behavior has changed with Python 3
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.2.1
          Component:  Test Suite     |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 The buffering behavior of the testsuite driver has changed with the move
 to Python 3 (#9184). Now output seems to arrive at the terminal in blocks.
 This is strange since the documentation for `sys.stdout` in Python 3.5
 claims,

 > When interactive, standard streams are line-buffered. Otherwise, they
 are    block-buffered like regular text files. You can override this value
 with the `-u` command-line option.

 It would be good to understand why this is the case.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12934>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list