mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #23738: Merge 3.4 into 3.5
This commit is contained in:
commit
0ff89099c7
10 changed files with 75 additions and 33 deletions
|
@ -442,6 +442,14 @@ class PosixTester(unittest.TestCase):
|
|||
else:
|
||||
self.assertTrue(stat.S_ISFIFO(posix.stat(support.TESTFN).st_mode))
|
||||
|
||||
# Keyword arguments are also supported
|
||||
support.unlink(support.TESTFN)
|
||||
try:
|
||||
posix.mknod(path=support.TESTFN, mode=mode, device=0,
|
||||
dir_fd=None)
|
||||
except OSError as e:
|
||||
self.assertIn(e.errno, (errno.EPERM, errno.EINVAL))
|
||||
|
||||
@unittest.skipUnless(hasattr(posix, 'stat'), 'test needs posix.stat()')
|
||||
@unittest.skipUnless(hasattr(posix, 'makedev'), 'test needs posix.makedev()')
|
||||
def test_makedev(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue