Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b93fe0c

Browse files
committed
more agressive skip on windows
1 parent 25f92b9 commit b93fe0c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

IPython/core/tests/test_magic.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
import nose.tools as nt
2121

22+
import pytest
23+
2224
from IPython import get_ipython
2325
from IPython.core import magic
2426
from IPython.core.error import UsageError
@@ -951,6 +953,9 @@ def test_script_config():
951953

952954
@dec.skip_iptest_but_not_pytest
953955
@dec.skip_win32
956+
@pytest.mark.skipif(
957+
sys.platform == "win32", reason="This test does not run under Windows"
958+
)
954959
def test_script_out():
955960
assert asyncio.get_event_loop().is_running() is False
956961

@@ -961,6 +966,9 @@ def test_script_out():
961966

962967
@dec.skip_iptest_but_not_pytest
963968
@dec.skip_win32
969+
@pytest.mark.skipif(
970+
sys.platform == "win32", reason="This test does not run under Windows"
971+
)
964972
def test_script_err():
965973
ip = get_ipython()
966974
assert asyncio.get_event_loop().is_running() is False
@@ -971,6 +979,9 @@ def test_script_err():
971979

972980
@dec.skip_iptest_but_not_pytest
973981
@dec.skip_win32
982+
@pytest.mark.skipif(
983+
sys.platform == "win32", reason="This test does not run under Windows"
984+
)
974985
def test_script_out_err():
975986

976987
ip = get_ipython()
@@ -983,6 +994,9 @@ def test_script_out_err():
983994

984995
@dec.skip_iptest_but_not_pytest
985996
@dec.skip_win32
997+
@pytest.mark.skipif(
998+
sys.platform == "win32", reason="This test does not run under Windows"
999+
)
9861000
async def test_script_bg_out():
9871001
ip = get_ipython()
9881002
ip.run_cell_magic("script", "--bg --out output sh", "echo 'hi'")
@@ -992,6 +1006,9 @@ async def test_script_bg_out():
9921006

9931007
@dec.skip_iptest_but_not_pytest
9941008
@dec.skip_win32
1009+
@pytest.mark.skipif(
1010+
sys.platform == "win32", reason="This test does not run under Windows"
1011+
)
9951012
async def test_script_bg_err():
9961013
ip = get_ipython()
9971014
ip.run_cell_magic("script", "--bg --err error sh", "echo 'hello' >&2")
@@ -1001,6 +1018,9 @@ async def test_script_bg_err():
10011018

10021019
@dec.skip_iptest_but_not_pytest
10031020
@dec.skip_win32
1021+
@pytest.mark.skipif(
1022+
sys.platform == "win32", reason="This test does not run under Windows"
1023+
)
10041024
async def test_script_bg_out_err():
10051025
ip = get_ipython()
10061026
ip.run_cell_magic(

0 commit comments

Comments
 (0)