stop testing on xenial, we depend on python 3.6 now

This commit is contained in:
Michael Hudson-Doyle 2018-05-18 13:38:13 +12:00
parent cb61144144
commit 1e4992a5e7
2 changed files with 3 additions and 4 deletions

View File

@ -1,9 +1,8 @@
sudo: required
env:
- IMAGE=ubuntu:xenial
- IMAGE=ubuntu:artful
- IMAGE=ubuntu-daily:bionic
- IMAGE=ubuntu:bionic
language: bash

View File

@ -103,7 +103,7 @@ def _clean_env(env):
return env
def run_command(cmd, *, input=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', env=None, **kw):
def run_command(cmd, *, input=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', errors='replace', env=None, **kw):
"""A wrapper around subprocess.run with logging and different defaults.
We never ever want a subprocess to inherit our file descriptors!
@ -121,7 +121,7 @@ def run_command(cmd, *, input=None, stdout=subprocess.PIPE, stderr=subprocess.PI
return cp
def start_command(cmd, *, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', env=None, **kw):
def start_command(cmd, *, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', errors='replace', env=None, **kw):
"""A wrapper around subprocess.Popen with logging and different defaults.
We never ever want a subprocess to inherit our file descriptors!