Skip to content

Commit

Permalink
Fix shell-specific test assumptions
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay committed Apr 30, 2024
1 parent 3dd3261 commit 39f5b44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_rosdep_shell_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

import sys


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

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

0 comments on commit 39f5b44

Please sign in to comment.