Closed LoicFerrot closed 2 years ago
This is intended behavior. But I'd rather answer this over on https://answers.ros.org, which is our central Question and Answer site. So I'm going to close this, and ask you to please reopen the question over there and tag me (@clalancette). Once I see that, I'll give the more detailed answer.
All right, I just opened a question on ROS answers. Thanks for your help!
Bug report / question
Steps to reproduce issue
copy-paste the following in
test_confusing.py
, then runpytest test_confusing.py
Expected behavior
The output of the launched node (logging info messages
"service not available, waiting again..."
) should be instdout
.Actual behavior
The output is in
stderr
, causing a confusing fail of the test.Additional information
I am a bit confused by the
output='screen'
argument and the fact that thepytest_hello_world.py
is usingassert_output_sync
. However, it is maybe intended behavior, as runningros2 run examples_rclpy_minimal_client client
also outputs tostderr
. Is it normal? Could you help me understand?Thanks!