support/testing/tests/package/test_python_unittest_xml_reporting.py: fix flake8 warnings
PATCH 1/1 support/testing/tests/package/test_python_unittest_xml_reporting.py: fix flake8 warnings
Fixes:
support/testing/tests/package/test_python_unittest_xml_reporting.py:3:1: F401 'time' imported but unused
1 F401 'time' imported but unused
make: *** [Makefile:1220: check-flake8] Error 123
--- .../testing/tests/package/test_python_unittest_xml_reporting.py | 1 - 1 file changed, 1 deletion(-)
support/testing/tests/package/test_python_unittest_xml_reporting.py +0 -1
@@ -1,6 +1,5 @@ from tests.package.test_python import TestPythonPackageBase import os -import time class TestPythonPy3UnitTestXmlReporting(TestPythonPackageBase):
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/1 support/testing/tests/package/sample_python_unittest_xml_reporting.py: fix flake8 warnings
Fixes:
support/testing/tests/package/sample_python_unittest_xml_reporting.py:4:1: E302 expected 2 blank lines, found 1 support/testing/tests/package/sample_python_unittest_xml_reporting.py:8:1: E305 expected 2 blank lines after class or function definition, found 1
1 E302 expected 2 blank lines, found 1
1 E305 expected 2 blank lines after class or function definition, found 1
--- .../tests/package/sample_python_unittest_xml_reporting.py | 2 ++ 1 file changed, 2 insertions(+)
support/testing/tests/package/sample_python_unittest_xml_reporting.py +2 -0
@@ -1,9 +1,11 @@ import unittest import xmlrunner + class Test1(unittest.TestCase): def test_something(self): self.assertTrue(True) + if __name__ == '__main__': unittest.main(testRunner=xmlrunner.XMLTestRunner(output='test-reports'))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines · Pierre-Jean Texier
Fixes:
support/testing/tests/package/test_python_unittest_xml_reporting.py:3:1: F401 'time' imported but unused
1 F401 'time' imported but unused
make: *** [Makefile:1220: check-flake8] Error 123Signed-off-by Pierre-Jean Texier <[email protected]>
Both applied to master (and next), thanks.
Regards,
Arnout
Quoted 10 lines
--- .../testing/tests/package/test_python_unittest_xml_reporting.py | 1 - 1 file changed, 1 deletion(-)support/testing/tests/package/test_python_unittest_xml_reporting.py +0
-0
support/testing/tests/package/test_python_unittest_xml_reporting.py line 5
Quoted 6 lines
support/testing/tests/package/test_python_unittest_xml_reporting.py +0
-1@@ -1,6 +1,5 @@ from tests.package.test_python import TestPythonPackageBase import os -import time class TestPythonPy3UnitTestXmlReporting(TestPythonPackageBase):
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot