@@ -78,7 +78,10 @@ def test_sys_path_profile_dir():
7878
7979
8080@flaky (max_runs = 3 )
81- @dec .skipif (sys .platform == 'win32' , "subprocess prints fail on Windows" )
81+ @dec .skipif (
82+ sys .platform == 'win32' or (sys .platform == "darwin" and sys .version_info >= (3 , 8 )),
83+ "subprocess prints fail on Windows and MacOS Python 3.8+"
84+ )
8285def test_subprocess_print ():
8386 """printing from forked mp.Process"""
8487 with new_kernel () as kc :
@@ -130,7 +133,10 @@ def test_subprocess_noprint():
130133
131134
132135@flaky (max_runs = 3 )
133- @dec .skipif (sys .platform == 'win32' , "subprocess prints fail on Windows" )
136+ @dec .skipif (
137+ sys .platform == 'win32' or (sys .platform == "darwin" and sys .version_info >= (3 , 8 )),
138+ "subprocess prints fail on Windows and MacOS Python 3.8+"
139+ )
134140def test_subprocess_error ():
135141 """error in mp.Process doesn't crash"""
136142 with new_kernel () as kc :
@@ -297,7 +303,7 @@ def test_message_order():
297303 assert reply ['parent_header' ]['msg_id' ] == msg_id
298304
299305
300- @dec .skipif (sys .platform .startswith ('linux' ))
306+ @dec .skipif (sys .platform .startswith ('linux' ) or sys . platform . startswith ( 'darwin' ) )
301307def test_unc_paths ():
302308 with kernel () as kc , TemporaryDirectory () as td :
303309 drive_file_path = os .path .join (td , 'unc.txt' )
@@ -345,7 +351,7 @@ def test_shutdown():
345351def test_interrupt_during_input ():
346352 """
347353 The kernel exits after being interrupted while waiting in input().
348-
354+
349355 input() appears to have issues other functions don't, and it needs to be
350356 interruptible in order for pdb to be interruptible.
351357 """
@@ -384,4 +390,4 @@ def test_interrupt_during_pdb_set_trace():
384390 reply = kc .get_shell_msg (timeout = TIMEOUT )
385391 validate_message (reply , 'execute_reply' , msg_id )
386392 reply = kc .get_shell_msg (timeout = TIMEOUT )
387- validate_message (reply , 'execute_reply' , msg_id2 )
393+ validate_message (reply , 'execute_reply' , msg_id2 )
0 commit comments