Skip to content

Commit d42a46a

Browse files
committed
test(colcon): configure our pkgs to use pytest
to ensure that the CI `colcon test` run works, because with a change to python 3.12 the `unittest` standard library used by default with colcon now exits with an error code of 5 for an empty test suite. See: colcon/colcon-core#678 See: python/cpython#102051
1 parent f9715cd commit d42a46a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

dynamic_stack_decider/package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<depend>rclpy</depend>
2525
<depend>std_msgs</depend>
2626
<depend>python3-yaml</depend>
27+
<test_depend>python3-pytest</test_depend>
2728
<test_depend>python3-coverage</test_depend>
2829

2930
<export>

dynamic_stack_decider_visualization/package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
<depend>python3-pydot</depend>
2727

28+
<test_depend>python3-pytest</test_depend>
2829

2930
<export>
3031
<architecture_independent/>

dynamic_stack_decider_visualization/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
("share/" + package_name, ["plugin.xml"]),
1313
],
1414
install_requires=["setuptools"],
15+
tests_require=["pytest"],
1516
zip_safe=True,
1617
entry_points={
1718
"console_scripts": [

0 commit comments

Comments
 (0)