@@ -642,12 +642,17 @@ def test_stat(self):
642642
643643 @unittest .skipUnless (hasattr (posix , 'mkfifo' ), "don't have mkfifo()" )
644644 def test_mkfifo (self ):
645- os_helper .unlink (os_helper .TESTFN )
645+ if sys .platform == "vxworks" :
646+ fifo_path = os .path .join ("/fifos/" , os_helper .TESTFN )
647+ else :
648+ fifo_path = os_helper .TESTFN
649+ os_helper .unlink (fifo_path )
650+ self .addCleanup (os_helper .unlink , fifo_path )
646651 try :
647- posix .mkfifo (os_helper . TESTFN , stat .S_IRUSR | stat .S_IWUSR )
652+ posix .mkfifo (fifo_path , stat .S_IRUSR | stat .S_IWUSR )
648653 except PermissionError as e :
649654 self .skipTest ('posix.mkfifo(): %s' % e )
650- self .assertTrue (stat .S_ISFIFO (posix .stat (os_helper . TESTFN ).st_mode ))
655+ self .assertTrue (stat .S_ISFIFO (posix .stat (fifo_path ).st_mode ))
651656
652657 @unittest .skipUnless (hasattr (posix , 'mknod' ) and hasattr (stat , 'S_IFIFO' ),
653658 "don't have mknod()/S_IFIFO" )
@@ -1929,7 +1934,7 @@ def test_posix_spawnp(self):
19291934class TestPosixWeaklinking (unittest .TestCase ):
19301935 # These test cases verify that weak linking support on macOS works
19311936 # as expected. These cases only test new behaviour introduced by weak linking,
1932- # regular behaviour is tested by the normal test cases.
1937+ # regular behaviour is tested by the normal test cases.
19331938 #
19341939 # See the section on Weak Linking in Mac/README.txt for more information.
19351940 def setUp (self ):
0 commit comments