sagemath/sage

for python 3.6, universal_newlines=, not text=, must be used in run()

dimpase opened this issue · 8 comments

after #30740, text=True is still there, in the call to run(), and also not supported by Python 3.6.
Cf.
https://docs.python.org/3/library/subprocess.html

Changed in version 3.7: Added the text parameter, 
as a more understandable alias of universal_newlines. 
Added the capture_output parameter.

as reported on sage-release

CC: @mkoeppe @vbraun

Component: python3

Author: Dima Pasechnik

Branch/Commit: 9307ef2

Reviewer: Clemens Heuberger

Issue created by migration from https://trac.sagemath.org/ticket/30758

Commit: 9307ef2

New commits:

9307ef2do not use the python3.7+ text= in run()

Author: Dima Pasechnik

Reviewer: Clemens Heuberger

comment:2

This solves the problem on my machine, make ptestlong passes without errors.

The python3 documentation states that "The universal_newlines argument is equivalent to text and is provided for backwards compatibility." so I do not think we can introduce any new problems here. I therefore set the ticket to postive.

comment:3

Thanks for fixing and testing this!