ros / geometry

Packages for common geometric calculations including the ROS transform library, "tf". Also includes ROS bindings for "bullet" physics engine and "kdl" kinematics/dynamics package.
175 stars 275 forks source link

Use process_time() to fix test failure using Python 3.8 #205

Closed sloretz closed 4 years ago

sloretz commented 4 years ago

This fixes a test failure on Ubuntu Focal which uses Python 3.8.

[100%] Built target _run_tests_tf_gtest
...E
======================================================================
ERROR: test_wait_for_transform (testPython.TestPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sloretz/ws/noetic-misc/src/geometry/tf/test/testPython.py", line 130, in test_wait_for_transform
    start = time.clock()
AttributeError: module 'time' has no attribute 'clock'

----------------------------------------------------------------------
Ran 10 tests in 3.574s

FAILED (errors=1)
-- run_tests.py: verify result "/home/sloretz/ws/noetic-misc/build_isolated/tf/test_results/tf/nosetests-test.testPython.py.xml"
[100%] Built target _run_tests_tf_nosetests_test.testPython.py
[100%] Built target _run_tests_tf_nosetests
[100%] Built target _run_tests_tf
[100%] Built target run_tests
<== Finished processing package [11 of 17]: 'tf'