diff options
author | Micah Lee <micah@micahflee.com> | 2021-05-02 15:51:39 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2021-05-02 15:51:39 -0700 |
commit | b630a92d5e821a37dc5e174171c6323811a3df63 (patch) | |
tree | f727c87b5d97bc8e7cfa425f9f08d0c52f9e12d6 /cli | |
parent | 6325662b9cc930adda3d596823a1cce5eb439711 (diff) | |
download | onionshare-b630a92d5e821a37dc5e174171c6323811a3df63.tar.gz onionshare-b630a92d5e821a37dc5e174171c6323811a3df63.zip |
Fix CLI tests in macOS
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/test_cli_web.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/test_cli_web.py b/cli/tests/test_cli_web.py index 9bb640e1..ec51654c 100644 --- a/cli/tests/test_cli_web.py +++ b/cli/tests/test_cli_web.py @@ -8,7 +8,7 @@ import zipfile import tempfile import base64 import shutil -import platform +import sys from io import BytesIO import pytest @@ -616,7 +616,7 @@ class TestRangeRequests: h.add("Authorization", "Basic " + auth) return h - @pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows") + @pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux") @check_unsupported("curl", ["--version"]) def test_curl(self, temp_dir, tmpdir, common_obj): web = web_obj(temp_dir, common_obj, "share", 3) @@ -641,7 +641,7 @@ class TestRangeRequests: ] ) - @pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows") + @pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux") @check_unsupported("wget", ["--version"]) def test_wget(self, temp_dir, tmpdir, common_obj): web = web_obj(temp_dir, common_obj, "share", 3) @@ -665,7 +665,7 @@ class TestRangeRequests: ] ) - @pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows") + @pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux") @check_unsupported("http", ["--version"]) def test_httpie(self, temp_dir, common_obj): web = web_obj(temp_dir, common_obj, "share", 3) |