• Home
  • Raw
  • Download

Lines Matching refs:platform

4 import platform
11 res = platform.architecture()
31 res = platform.platform(aliased, terse)
34 res = platform.system()
37 res = platform.node()
40 res = platform.release()
43 res = platform.version()
46 res = platform.machine()
49 res = platform.processor()
54 self.save_platform = sys.platform
59 sys.platform = self.save_platform
90 = platform._sys_version(input)
140 sys.platform = sys_platform
141 self.assertEqual(platform.python_implementation(), info[0])
142 self.assertEqual(platform.python_version(), info[1])
143 self.assertEqual(platform.python_branch(), info[2])
144 self.assertEqual(platform.python_revision(), info[3])
145 self.assertEqual(platform.python_build(), info[4])
146 self.assertEqual(platform.python_compiler(), info[5])
149 res = platform.system_alias(
150 platform.system(),
151 platform.release(),
152 platform.version(),
156 res = platform.uname()
159 @unittest.skipUnless(sys.platform.startswith('win'), "windows only test")
170 platform._uname_cache = None
171 system, node, release, version, machine, processor = platform.uname()
174 platform._uname_cache = None
175 system, node, release, version, machine, processor = platform.uname()
178 platform._uname_cache = None
181 res = platform.java_ver()
182 if sys.platform == 'java':
186 res = platform.win32_ver()
189 res = platform.mac_ver()
198 if have_toolbox_glue and platform.uname()[0] == 'Darwin':
228 @unittest.skipUnless(sys.platform == 'darwin', "OSX only test")
237 info = platform.mac_ver()
247 res = platform.dist()
256 res = platform.libc_ver(executable)
262 self.assertEqual(platform.libc_ver(support.TESTFN),
280 self.assertEqual(platform._parse_release_file(input), output)