Skip to content

Commit

Permalink
Switch to unittest.mock (#78)
Browse files Browse the repository at this point in the history
The mock package has been integrated into unittest since Python 3.3,
which includes all supported distributions of ROS 2.

Signed-off-by: Scott K Logan <logans@cottsay.net>
  • Loading branch information
cottsay authored May 1, 2023
1 parent 9516dbb commit 41dadc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

<exec_depend>python3-lxml</exec_depend>
<exec_depend>python3-yaml</exec_depend>
<test_depend>python3-mock</test_depend>

<export>
<build_type>ament_python</build_type>
Expand Down
2 changes: 1 addition & 1 deletion test/test_urdf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import unittest
import mock
from unittest import mock
import os
import sys

Expand Down

0 comments on commit 41dadc6

Please sign in to comment.