Suppress warnings when testing RBTools version help output.

Review Request #14063 — Created July 29, 2024 and submitted

Information

RBTools
release-2.0.x

Reviewers

We had a unit test regression in RBTools 2 that was caused by
pkg_resources emitting a deprecation warning on import. This resulted
in the version output not being quite what we expected.

While RBTools 2 is no longer under development, this same issue is
likely going to crop up in the future due to other imports, and it's
best to take care of it now.

We now ignore warnings when we execute rbt for version testing
purposes, using python -W ignore.

Unit tests pass.

Summary ID
Suppress warnings when testing RBTools version help output.
We had a unit test regression in RBTools 2 that was caused by `pkg_resources` emitting a deprecation warning on import. This resulted in the version output not being quite what we expected. While RBTools 2 is no longer under development, this same issue is likely going to crop up in the future due to other imports, and it's best to take care of it now. We now ignore warnings when we execute `rbt` for version testing purposes, using `python -W ignore`.
a5a49cd617e303a31c80098fa9c5a0f2ced30890
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (612a24b)