commit | 06430b9fc66e3912bea2c0a2d13b22d7054a9ac7 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <[email protected]> | Sun Dec 01 16:25:34 2024 -0600 |
committer | Benjamin Peterson <[email protected]> | Sun Dec 01 16:35:15 2024 -0600 |
tree | ef1a7badd5738ae4ce059a70800bc8a7c854c4d0 | |
parent | ceddaf2d0a45cf3a19ce0ac63a24ca4ffc76ba7c [diff] |
Make test_getoutput work on Windows.
diff --git a/test_six.py b/test_six.py index 2fe78ee..4a911b6 100644 --- a/test_six.py +++ b/test_six.py
@@ -233,8 +233,8 @@ 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():