def check(self, f, *args):
        try:
            f(test_support.make_bad_fd(), *args)
        except __HOLE__ as e:
            self.assertEqual(e.errno, errno.EBADF)
        else:
            self.fail("%r didn't raise a OSError with a bad file descriptor"
                      % f)
dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/test/test_os.py/TestInvalidFD.check