Lines Matching refs:platform
3 import platform
15 res = platform.architecture()
22 if sys.platform == "win32":
54 res = platform.platform(aliased, terse)
57 res = platform.system()
60 res = platform.node()
63 res = platform.release()
66 res = platform.version()
69 res = platform.machine()
72 res = platform.processor()
77 self.save_platform = sys.platform
82 sys.platform = self.save_platform
113 = platform._sys_version(input)
163 sys.platform = sys_platform
164 self.assertEqual(platform.python_implementation(), info[0])
165 self.assertEqual(platform.python_version(), info[1])
166 self.assertEqual(platform.python_branch(), info[2])
167 self.assertEqual(platform.python_revision(), info[3])
168 self.assertEqual(platform.python_build(), info[4])
169 self.assertEqual(platform.python_compiler(), info[5])
172 res = platform.system_alias(
173 platform.system(),
174 platform.release(),
175 platform.version(),
179 res = platform.uname()
188 @unittest.skipUnless(sys.platform.startswith('win'), "windows only test")
199 platform._uname_cache = None
200 system, node, release, version, machine, processor = platform.uname()
203 platform._uname_cache = None
204 system, node, release, version, machine, processor = platform.uname()
207 platform._uname_cache = None
210 res = platform.java_ver()
211 if sys.platform == 'java':
215 res = platform.win32_ver()
218 res = platform.mac_ver()
220 if platform.uname().system == 'Darwin':
250 @unittest.skipUnless(sys.platform == 'darwin', "OSX only test")
259 info = platform.mac_ver()
276 res = platform.dist()
285 res = platform.libc_ver(executable)
291 self.assertEqual(platform.libc_ver(support.TESTFN),
296 from platform import _comparable_version as V
345 self.assertEqual(platform._parse_release_file(input), output)
348 mswindows = (sys.platform == "win32")
356 with platform.popen(command) as stdout:
369 with platform.popen(command, 'w') as stdin:
394 distname, version, distid = platform.linux_distribution()
405 platform.dist()
412 platform.linux_distribution()