File tree 1 file changed +3
-3
lines changed
launch/test/launch/actions 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def test_include_launch_description_launch_arguments():
110
110
lc2 = LaunchContext ()
111
111
with pytest .raises (RuntimeError ) as excinfo2 :
112
112
action2 .visit (lc2 )
113
- assert 'Included launch description missing required argument' in str (excinfo2 )
113
+ assert 'Included launch description missing required argument' in str (excinfo2 . value )
114
114
115
115
# test that a declared argument that is not provided raises an error, but with other args set
116
116
ld2 = LaunchDescription ([DeclareLaunchArgument ('foo' )])
@@ -121,8 +121,8 @@ def test_include_launch_description_launch_arguments():
121
121
lc2 = LaunchContext ()
122
122
with pytest .raises (RuntimeError ) as excinfo2 :
123
123
action2 .visit (lc2 )
124
- assert 'Included launch description missing required argument' in str (excinfo2 )
125
- assert 'not_foo' in str (excinfo2 )
124
+ assert 'Included launch description missing required argument' in str (excinfo2 . value )
125
+ assert 'not_foo' in str (excinfo2 . value )
126
126
127
127
# test that a declared argument with a default value that is not provided does not raise
128
128
ld2 = LaunchDescription ([DeclareLaunchArgument ('foo' , default_value = 'FOO' )])
You can’t perform that action at this time.
0 commit comments