Skip to content

Commit 9105676

Browse files
committed
Failing tests
1 parent d5bc1b6 commit 9105676

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

python/tests/test_yup_core/test_URLInputSource.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
import sys
2+
import pytest
3+
14
import yup
25

36
#==================================================================================================
47

8+
@pytest.mark.skipif(sys.platform == "linux", reason="Linux doesn't always have a working libcurl in CI")
59
def test_url_input_source_constructor():
610
url = yup.URL("https://github.com")
711
input_source = yup.URLInputSource(url)
@@ -10,6 +14,7 @@ def test_url_input_source_constructor():
1014

1115
#==================================================================================================
1216

17+
@pytest.mark.skipif(sys.platform == "linux", reason="Linux doesn't always have a working libcurl in CI")
1318
def test_create_stream():
1419
url = yup.URL("https://github.com/kunitoki/yup")
1520
input_source = yup.URLInputSource(url)
@@ -18,6 +23,7 @@ def test_create_stream():
1823

1924
#==================================================================================================
2025

26+
@pytest.mark.skipif(sys.platform == "linux", reason="Linux doesn't always have a working libcurl in CI")
2127
def test_create_stream_with_post_data():
2228
url = yup.URL("https://github.com")
2329
input_source = yup.URLInputSource(url)

tests/yup_python/yup_ScriptPython.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,9 @@ TEST_F (ScriptPythonTest, RunPythonTests)
117117
print(str(ex))
118118
finally:
119119
sys.argv = old_argv
120-
121-
os.system('ls -la {{root_path}}')
122-
os.system('ls -la {{root_path}}/*')
123-
os.system('ls -la {{root_path}}/*/*')
124-
os.system('ls -la {{root_path}}/*/*/*')
125-
126120
import pytest
127121
128-
pytest.main(['-x', '{{test_path}}', '-vvv'])
122+
assert pytest.main(['-x', '{{test_path}}', '-vvv']) == 0
129123
)");
130124

131125
script = script

0 commit comments

Comments
 (0)