Lines Matching defs:check
763 # Heuristic to check if the filesystem supports timestamp with
764 # subsecond resolution: check if float and int timestamps are different
975 """check that os.environ object conform to mapping protocol"""
1119 proc = subprocess.run([sys.executable, '-c', code], check=True,
1124 proc = subprocess.run([sys.executable, '-c', code], check=True,
1518 # check returned file descriptors
1522 # check that the FD is valid
1524 # redundant check
1526 # check that listdir() returns consistent information
1534 # we both check that calling fwalk() a large number of times doesn't
2150 self.check(getattr(os, f))
2155 def check(self, f, *args, **kwargs):
2165 self.check(os.fdopen, encoding="utf-8")
2189 self.check(os.dup2, 20)
2213 self.check(os.fchmod, 0)
2217 self.check(os.fchown, -1, -1)
2225 self.check(os.pathconf, "PC_NAME_MAX")
2226 self.check(os.fpathconf, "PC_NAME_MAX")
2230 self.check(os.truncate, 0)
2231 self.check(os.ftruncate, 0)
2235 self.check(os.lseek, 0, 0)
2239 self.check(os.read, 1)
2244 self.check(os.readv, [buf])
2248 self.check(os.tcsetpgrp, 0)
2252 self.check(os.write, b" ")
2256 self.check(os.writev, [b'abc'])
2260 self.check(os.get_inheritable)
2261 self.check(os.set_inheritable, True)
2266 self.check(os.get_blocking)
2267 self.check(os.set_blocking, True)
2456 # becomes ready, send *sig* via os.kill to the subprocess and check
2729 # For compatibility with Unix, os.remove will check the
3145 # read the variable from os.environ to check that it exists
3669 There's no easy portable way to actually check the size of the
3670 terminal, so let's check if it returns something sensible instead.
3917 # FD inheritance check is only useful for systems with process support.
4432 # check than consuming the iterator twice doesn't raise exception