Update flake8 and pycodestyle tests for modern versions of the tools.
Review Request #12890 — Created March 14, 2023 and submitted — Latest diff uploaded
Recent versions of flake8 and pycodestyle now report different results
for the code samples we provide in the unit tests. This meant that the
simulation tests would pass, but the integration tests would fail.
The tests now check for different variations of results for flake8, and
we use different sample code for pycodestyle, ensuring tests pass with
Unit tests pass with new versions of all the tools.