8000 bpo-31904: fix fifo test cases for VxWorks RTOS by pxinwr · Pull Request #20254 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-31904: fix fifo test cases for VxWorks RTOS #20254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clean up fifo in test_fifo() of test_stat.py
  • Loading branch information
pxinwr committed Nov 30, 2020
commit 3ebb40c3414f749630ab65357a340f94e57ce31d
4 changes: 2 additions & 2 deletions Lib/test/test_stat.py
83F2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import socket
import sys
from test.support import os_helper
from test.support import socket_helper
from test.support.import_helper import import_fresh_module
from test.support.os_helper import TESTFN
Expand Down Expand Up @@ -181,9 +182,8 @@ def test_fifo(self):
os.mkfifo(fifo_path, 0o700)
except PermissionError as e:
self.skipTest('os.mkfifo(): %s' % e)
self.addCleanup(os_helper.unlink, fifo_path)
st_mode, modestr = self.get_mode(fifo_path)
if sys.platform == "vxworks":
os.remove(fifo_path)
self.assertEqual(modestr, 'prwx------')
self.assertS_IS("FIFO", st_mode)

Expand Down
0