Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(116475)

Side by Side Diff: Lib/distutils/tests/test_install.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/distutils/tests/test_install_lib.py ('k') | Lib/distutils/tests/test_spawn.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """Tests for distutils.command.install.""" 1 """Tests for distutils.command.install."""
2 2
3 import os 3 import os
4 import sys 4 import sys
5 import unittest 5 import unittest
6 import site 6 import site
7 7
8 from test.support import captured_stdout, run_unittest 8 from test.support import captured_stdout, run_unittest
9 9
10 from distutils import sysconfig 10 from distutils import sysconfig
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 content = f.read() 188 content = f.read()
189 finally: 189 finally:
190 f.close() 190 f.close()
191 191
192 found = [os.path.basename(line) for line in content.splitlines()] 192 found = [os.path.basename(line) for line in content.splitlines()]
193 expected = ['hello.py', 'hello.%s.pyc' % sys.implementation.cache_tag, 193 expected = ['hello.py', 'hello.%s.pyc' % sys.implementation.cache_tag,
194 'sayhi', 194 'sayhi',
195 'UNKNOWN-0.0.0-py%s.%s.egg-info' % sys.version_info[:2]] 195 'UNKNOWN-0.0.0-py%s.%s.egg-info' % sys.version_info[:2]]
196 self.assertEqual(found, expected) 196 self.assertEqual(found, expected)
197 197
198 @unittest.skipUnless(os.name == 'nt' or (os.name == 'posix' and hasattr(os, 'fork')), "distutils cannot spawn child processes")
198 def test_record_extensions(self): 199 def test_record_extensions(self):
199 install_dir = self.mkdtemp() 200 install_dir = self.mkdtemp()
200 project_dir, dist = self.create_dist(ext_modules=[ 201 project_dir, dist = self.create_dist(ext_modules=[
201 Extension('xx', ['xxmodule.c'])]) 202 Extension('xx', ['xxmodule.c'])])
202 os.chdir(project_dir) 203 os.chdir(project_dir)
203 support.copy_xxmodule_c(project_dir) 204 support.copy_xxmodule_c(project_dir)
204 205
205 buildextcmd = build_ext(dist) 206 buildextcmd = build_ext(dist)
206 support.fixup_build_ext(buildextcmd) 207 support.fixup_build_ext(buildextcmd)
207 buildextcmd.ensure_finalized() 208 buildextcmd.ensure_finalized()
(...skipping 27 matching lines...) Expand all
235 finally: 236 finally:
236 install_module.DEBUG = False 237 install_module.DEBUG = False
237 self.assertGreater(len(self.logs), old_logs_len) 238 self.assertGreater(len(self.logs), old_logs_len)
238 239
239 240
240 def test_suite(): 241 def test_suite():
241 return unittest.makeSuite(InstallTestCase) 242 return unittest.makeSuite(InstallTestCase)
242 243
243 if __name__ == "__main__": 244 if __name__ == "__main__":
244 run_unittest(test_suite()) 245 run_unittest(test_suite())
OLDNEW
« no previous file with comments | « Lib/distutils/tests/test_install_lib.py ('k') | Lib/distutils/tests/test_spawn.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+