Skip to content

Commit 5bfb7bc

Browse files
committed
python_SUITE: Increase unittest verbosity
[Why] I noticed the following error in a test case: error sending frame Traceback (most recent call last): File "/home/runner/work/rabbitmq-server/rabbitmq-server/deps/rabbitmq_stomp/test/python_SUITE_data/src/deps/stomp/transport.py", line 623, in send self.socket.sendall(encoded_frame) OSError: [Errno 9] Bad file descriptor When the test suite succeeds, this error is not present. When it failed, it was present. But I checked only one instance of each, it's not enough to draw any conclusion about the relationship between this error and the failing test case later. I have no idea which test case hits this error, so increase the verbosity, in the hope we see the name of the test case running at the time of this error.
1 parent 766ca19 commit 5bfb7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbitmq_stomp/test/python_SUITE_data/src/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def run_unittests(modules):
2020
if name.startswith("Test") and issubclass(obj, unittest.TestCase):
2121
suite.addTest(unittest.TestLoader().loadTestsFromTestCase(obj))
2222

23-
ts = unittest.TextTestRunner().run(unittest.TestSuite(suite))
23+
ts = unittest.TextTestRunner(verbosity=10).run(unittest.TestSuite(suite))
2424
if ts.errors or ts.failures:
2525
sys.exit(1)
2626

0 commit comments

Comments
 (0)