Skip to content

Commit 058025b

Browse files
authored
Fix shell-specific test assumptions (#959)
1 parent 4acfccc commit 058025b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_rosdep_shell_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2626
# POSSIBILITY OF SUCH DAMAGE.
2727

28+
import sys
29+
2830

2931
def test_create_tempfile_from_string_and_execute():
3032
# not sure how to test this just yet, for now just a tripwire
@@ -36,4 +38,4 @@ def test_create_tempfile_from_string_and_execute():
3638

3739
def test_read_stdout():
3840
from rosdep2.shell_utils import read_stdout
39-
assert 'foo' in read_stdout(['echo', 'foo'])
41+
assert 'foo' in read_stdout([sys.executable, '-c', "print('foo')"])

0 commit comments

Comments
 (0)