Skip to content

Commit

Permalink
Ignore deprecation warnings coming from pyreadline
Browse files Browse the repository at this point in the history
Fixes #511

Relevant issue upstream: pyreadline/pyreadline#65

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron committed Oct 5, 2020
1 parent 4b3511a commit a3be43e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ros2_batch_job/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ def run(args, build_function, blacklisted_package_names=None):
os.environ['GIT_COMMITTER_EMAIL'] = 'nobody@osrfoundation.org'
os.environ['GIT_COMMITTER_NAME'] = 'nobody'

# Ignore Python deprecation warnings coming from pyreadline
# TODO(jacobperron): This can be removed after resolved upstream
# https://github.com/pyreadline/pyreadline/issues/65
os.environ['PYTHONWARNINGS'] = 'ignore::DeprecationWarning:pyreadline[.*]'

info("Using workspace: @!{0}", fargs=(args.workspace,))
# git doesn't work reliably inside qemu, so we're assuming that somebody
# already checked out the code on the host and mounted it in at the right
Expand Down

0 comments on commit a3be43e

Please sign in to comment.