3 from __future__
import print_function
5 import cStringIO
as StringIO
13 PKG =
'jsk_topic_tools' 14 NAME =
'test_python_log_utils' 24 sys.stdout = f = StringIO.StringIO()
26 sys.stdout = sys.__stdout__
28 self.assertFalse(f.getvalue(),
'spam\n')
30 self.assertEqual(f.getvalue(),
'spam\n')
34 self.
_check(no_logging=
True)
35 rospy.sleep(rospy.Duration(3))
39 if __name__ ==
'__main__':
41 rostest.rosrun(PKG, NAME, TestPythonLogUtils)
def test_LoggingThrottle(self)
def _check(self, no_logging=False)