Skip to content

Commit 41dadc6

Browse files
authored
Switch to unittest.mock (#78)
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 <[email protected]>
1 parent 9516dbb commit 41dadc6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
<exec_depend>python3-lxml</exec_depend>
2727
<exec_depend>python3-yaml</exec_depend>
28-
<test_depend>python3-mock</test_depend>
2928

3029
<export>
3130
<build_type>ament_python</build_type>

test/test_urdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import unittest
3-
import mock
3+
from unittest import mock
44
import os
55
import sys
66

0 commit comments

Comments
 (0)