##// END OF EJS Templates
more agressive skip on windows
Matthias Bussonnier -
Show More
@@ -19,6 +19,8 b' from unittest import TestCase, mock'
19
19
20 import nose.tools as nt
20 import nose.tools as nt
21
21
22 import pytest
23
22 from IPython import get_ipython
24 from IPython import get_ipython
23 from IPython.core import magic
25 from IPython.core import magic
24 from IPython.core.error import UsageError
26 from IPython.core.error import UsageError
@@ -951,6 +953,9 b' def test_script_config():'
951
953
952 @dec.skip_iptest_but_not_pytest
954 @dec.skip_iptest_but_not_pytest
953 @dec.skip_win32
955 @dec.skip_win32
956 @pytest.mark.skipif(
957 sys.platform == "win32", reason="This test does not run under Windows"
958 )
954 def test_script_out():
959 def test_script_out():
955 assert asyncio.get_event_loop().is_running() is False
960 assert asyncio.get_event_loop().is_running() is False
956
961
@@ -961,6 +966,9 b' def test_script_out():'
961
966
962 @dec.skip_iptest_but_not_pytest
967 @dec.skip_iptest_but_not_pytest
963 @dec.skip_win32
968 @dec.skip_win32
969 @pytest.mark.skipif(
970 sys.platform == "win32", reason="This test does not run under Windows"
971 )
964 def test_script_err():
972 def test_script_err():
965 ip = get_ipython()
973 ip = get_ipython()
966 assert asyncio.get_event_loop().is_running() is False
974 assert asyncio.get_event_loop().is_running() is False
@@ -971,6 +979,9 b' def test_script_err():'
971
979
972 @dec.skip_iptest_but_not_pytest
980 @dec.skip_iptest_but_not_pytest
973 @dec.skip_win32
981 @dec.skip_win32
982 @pytest.mark.skipif(
983 sys.platform == "win32", reason="This test does not run under Windows"
984 )
974 def test_script_out_err():
985 def test_script_out_err():
975
986
976 ip = get_ipython()
987 ip = get_ipython()
@@ -983,6 +994,9 b' def test_script_out_err():'
983
994
984 @dec.skip_iptest_but_not_pytest
995 @dec.skip_iptest_but_not_pytest
985 @dec.skip_win32
996 @dec.skip_win32
997 @pytest.mark.skipif(
998 sys.platform == "win32", reason="This test does not run under Windows"
999 )
986 async def test_script_bg_out():
1000 async def test_script_bg_out():
987 ip = get_ipython()
1001 ip = get_ipython()
988 ip.run_cell_magic("script", "--bg --out output sh", "echo 'hi'")
1002 ip.run_cell_magic("script", "--bg --out output sh", "echo 'hi'")
@@ -992,6 +1006,9 b' async def test_script_bg_out():'
992
1006
993 @dec.skip_iptest_but_not_pytest
1007 @dec.skip_iptest_but_not_pytest
994 @dec.skip_win32
1008 @dec.skip_win32
1009 @pytest.mark.skipif(
1010 sys.platform == "win32", reason="This test does not run under Windows"
1011 )
995 async def test_script_bg_err():
1012 async def test_script_bg_err():
996 ip = get_ipython()
1013 ip = get_ipython()
997 ip.run_cell_magic("script", "--bg --err error sh", "echo 'hello' >&2")
1014 ip.run_cell_magic("script", "--bg --err error sh", "echo 'hello' >&2")
@@ -1001,6 +1018,9 b' async def test_script_bg_err():'
1001
1018
1002 @dec.skip_iptest_but_not_pytest
1019 @dec.skip_iptest_but_not_pytest
1003 @dec.skip_win32
1020 @dec.skip_win32
1021 @pytest.mark.skipif(
1022 sys.platform == "win32", reason="This test does not run under Windows"
1023 )
1004 async def test_script_bg_out_err():
1024 async def test_script_bg_out_err():
1005 ip = get_ipython()
1025 ip = get_ipython()
1006 ip.run_cell_magic(
1026 ip.run_cell_magic(
General Comments 0
You need to be logged in to leave comments. Login now