Exemplo n.º 1
0
def fstat(space, fd):
    """Perform a stat system call on the file referenced to by an open
file descriptor."""
    try:
        st = rposix_stat.fstat(fd)
    except OSError, e:
        raise wrap_oserror(space, e)
Exemplo n.º 2
0
def fstat(space, fd):
    """Perform a stat system call on the file referenced to by an open
file descriptor."""
    try:
        st = rposix_stat.fstat(fd)
    except OSError, e:
        raise wrap_oserror(space, e)
Exemplo n.º 3
0
 def test_fstat(self):
     stat = rposix_stat.fstat(0)  # stdout
     assert stat.st_mode != 0
Exemplo n.º 4
0
 def test_fstat(self):
     stat = rposix_stat.fstat(0)  # stdout
     assert stat.st_mode != 0