support/testing/tests/package/sample_gst1_python.py: fix flake8 warnings
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Mar 2020 14:45:42 +0000 (15:45 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Mar 2020 14:54:13 +0000 (15:54 +0100)
commit15f354e7dffa19247cecbcf5711c2bffff6f828c
tree3379ca01c2818e25e5a0b4207eb2b2346ac29001
parent7e025dd80bcffaa74971666ed9d1e38ef0f766ad
support/testing/tests/package/sample_gst1_python.py: fix flake8 warnings

Fixes the following flake8 warnings:

  support/testing/tests/package/sample_gst1_python.py:5:1: F401 'time' imported but unused
  support/testing/tests/package/sample_gst1_python.py:7:1: E402 module level import not at top of file
  support/testing/tests/package/sample_gst1_python.py:21:12: W292 no newline at end of file

For the E402 warning, we add a "noqa" marker, as we really want the
gi.require_version() to be before.

There is still one remaining warning to be fixed:

  support/testing/tests/package/sample_gst1_python.py:18:28: F821 undefined name 'on_message'

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/tests/package/sample_gst1_python.py