Skip to contentSkip to conversation

support/testing: drop docstring in TestPythonPackageBase::test_run()

PATCH New Thomas Petazzoni 2 participants 2 messages Dec 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/testing: drop docstring in TestPythonPackageBase::test_run()

Having a docstring in the test_run() method clutters the "run-tests -l" output:

test_run (tests.package.test_python_crossbar.TestPythonPy3Crossbar) Test a python package. ... ok
[...]
test_run (tests.package.test_python_pexpect.TestPythonPy2Pexpect) Test a python package. ... ok
test_run (tests.package.test_python_pexpect.TestPythonPy3Pexpect) Test a python package. ... ok
test_run (tests.package.test_python_twisted.TestPythonPy2Twisted) Test a python package. ... ok
test_run (tests.package.test_python_twisted.TestPythonPy3Twisted) Test a python package. ... ok
test_run (tests.package.test_python_pynacl.TestPythonPy2Pynacl) Test a python package. ... ok
test_run (tests.package.test_python_pynacl.TestPythonPy3Pynacl) Test a python package. ... ok

So let's simply drop this docstring that is not particularly useful.

---
 support/testing/tests/package/test_python.py | 1 -
 1 file changed, 1 deletion(-)
support/testing/tests/package/test_python.py +0 -1
index c422bdbf50..bcd363ad1e 100644
@@ -120,7 +120,6 @@ class TestPythonPackageBase(TestPythonBase):
             self.assertEqual(exit_code, 0)
 
     def test_run(self):
-        """Test a python package."""
         self.login()
         self.check_sample_scripts_exist()
         self.run_sample_scripts()
Signature · 1 line
2.19.2
#1 lore raw

PATCH 1/1 support/testing: drop docstring in TestPythonPackageBase::test_run()

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Having a docstring in the test_run() method clutters the "run-tests -l" output:

test_run (tests.package.test_python_crossbar.TestPythonPy3Crossbar) Test a python package. ... ok
[...]
test_run (tests.package.test_python_pexpect.TestPythonPy2Pexpect) Test a python package. ... ok
test_run (tests.package.test_python_pexpect.TestPythonPy3Pexpect) Test a python package. ... ok
test_run (tests.package.test_python_twisted.TestPythonPy2Twisted) Test a python package. ... ok
test_run (tests.package.test_python_twisted.TestPythonPy3Twisted) Test a python package. ... ok
test_run (tests.package.test_python_pynacl.TestPythonPy2Pynacl) Test a python package. ... ok
test_run (tests.package.test_python_pynacl.TestPythonPy3Pynacl) Test a python package. ... ok

Quoted 3 lines

So let's simply drop this docstring that is not particularly useful.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard