Lines Matching defs:platform
17 import platform
408 if inst.errno == errno.EINVAL and sys.platform.startswith(
652 if sys.platform == "vxworks":
734 if sys.platform == "vxworks":
761 big_value = (2**31 if sys.platform != "vxworks" else 2**15)
768 elif platform.system() in ('HP-UX', 'SunOS'):
1087 if sys.platform == 'darwin':
1132 if sys.platform != "darwin":
1157 if not sys.platform.startswith(('freebsd', 'netbsd')):
1197 if not sys.platform.startswith("freebsd"):
1217 if not sys.platform.startswith("freebsd"):
1414 # whoops! using both together not supported on this platform.
1530 if sys.platform == 'darwin':
1768 @unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
1788 @unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
1948 @unittest.skipUnless(sys.platform == "darwin", "test weak linking on macOS")
1957 import platform
1961 self.mac_ver = tuple(int(part) for part in platform.mac_ver()[0].split("."))
2059 # behaviour you'd get when building on a platform without