Skip to content

Commit 06430b9

Browse files
committed
Make test_getoutput work on Windows.
1 parent ceddaf2 commit 06430b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_six.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ def test_map():
233233

234234
def test_getoutput():
235235
from six.moves import getoutput
236-
output = getoutput('echo "foo"')
237-
assert output == 'foo'
236+
output = getoutput('dir' if sys.platform.startswith('win') else 'echo foo')
237+
assert output != ''
238238

239239

240240
def test_zip():

0 commit comments

Comments
 (0)