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

Side by Side Diff: Lib/test/test_importlib/extension/test_loader.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/test/test_importlib/extension/test_finder.py ('k') | Lib/test/test_imp.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 from .. import abc 1 from .. import abc
2 from .. import util 2 from .. import util
3 3
4 machinery = util.import_importlib('importlib.machinery') 4 machinery = util.import_importlib('importlib.machinery')
5 5
6 import os.path 6 import os.path
7 import sys 7 import sys
8 import types 8 import types
9 import unittest 9 import unittest
10 import importlib.util 10 import importlib.util
11 import importlib 11 import importlib
12 12
13 13
14 @unittest.skipIf(sys.platform == 'ios', 'iOS does not support dynamic loading')
14 class LoaderTests(abc.LoaderTests): 15 class LoaderTests(abc.LoaderTests):
15 16
16 """Test load_module() for extension modules.""" 17 """Test load_module() for extension modules."""
17 18
18 def setUp(self): 19 def setUp(self):
19 self.loader = self.machinery.ExtensionFileLoader(util.EXTENSIONS.name, 20 self.loader = self.machinery.ExtensionFileLoader(util.EXTENSIONS.name,
20 util.EXTENSIONS.file_pa th) 21 util.EXTENSIONS.file_pa th)
21 22
22 def load_module(self, fullname): 23 def load_module(self, fullname):
23 return self.loader.load_module(fullname) 24 return self.loader.load_module(fullname)
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 self.assertEqual(module.__doc__, "Module named in %s" % lang) 260 self.assertEqual(module.__doc__, "Module named in %s" % lang)
260 261
261 262
262 (Frozen_MultiPhaseExtensionModuleTests, 263 (Frozen_MultiPhaseExtensionModuleTests,
263 Source_MultiPhaseExtensionModuleTests 264 Source_MultiPhaseExtensionModuleTests
264 ) = util.test_both(MultiPhaseExtensionModuleTests, machinery=machinery) 265 ) = util.test_both(MultiPhaseExtensionModuleTests, machinery=machinery)
265 266
266 267
267 if __name__ == '__main__': 268 if __name__ == '__main__':
268 unittest.main() 269 unittest.main()
OLDNEW
« no previous file with comments | « Lib/test/test_importlib/extension/test_finder.py ('k') | Lib/test/test_imp.py » ('j') | no next file with comments »

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