diff options
Diffstat (limited to 'Lib/test/test_posix.py')
| -rw-r--r-- | Lib/test/test_posix.py | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index aeb8924..d767989 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -443,6 +443,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):  | 
