Skip to contentSkip to conversation

support/testing/tests/package/test_python_unittest_xml_reporting.py: fix flake8 warnings

PATCH In review Pierre-Jean Texier 2 participants 3 messages Nov 8, 2021

lore
Share & tools
lore
#0 lore raw

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
index f08c88e3da..446c231a00 100644
@@ -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
#1 lore raw

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
index 8fa92aaccc..cfef4df22a 100644
@@ -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
#2 lore raw
In reply to Pierre-Jean Texier
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 123

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
index f08c88e3da..446c231a00 100644

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