Skip to content

Commit

Permalink
Make test_getoutput work on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Dec 1, 2024
1 parent ceddaf2 commit 06430b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_six.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def test_map():

def test_getoutput():
from six.moves import getoutput
output = getoutput('echo "foo"')
assert output == 'foo'
output = getoutput('dir' if sys.platform.startswith('win') else 'echo foo')
assert output != ''


def test_zip():
Expand Down

0 comments on commit 06430b9

Please sign in to comment.