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

Side by Side Diff: Lib/test/test_importlib/extension/test_finder.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 9 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_import/__init__.py ('k') | Lib/test/test_importlib/extension/test_loader.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 sys
6 import unittest 7 import unittest
7 import warnings 8 import warnings
8 9
9 # XXX find_spec tests 10 # XXX find_spec tests
10 11
12 @unittest.skipIf(sys.platform == 'ios', 'iOS does not support dynamic loading')
11 class FinderTests(abc.FinderTests): 13 class FinderTests(abc.FinderTests):
12 14
13 """Test the finder for extension modules.""" 15 """Test the finder for extension modules."""
14 16
15 def find_module(self, fullname): 17 def find_module(self, fullname):
16 importer = self.machinery.FileFinder(util.EXTENSIONS.path, 18 importer = self.machinery.FileFinder(util.EXTENSIONS.path,
17 (self.machinery.ExtensionFileLoader, 19 (self.machinery.ExtensionFileLoader,
18 self.machinery.EXTENSION_SUFFIXES)) 20 self.machinery.EXTENSION_SUFFIXES))
19 with warnings.catch_warnings(): 21 with warnings.catch_warnings():
20 warnings.simplefilter('ignore', DeprecationWarning) 22 warnings.simplefilter('ignore', DeprecationWarning)
(...skipping 15 matching lines...) Expand all
36 self.assertIsNone(self.find_module('asdfjkl;')) 38 self.assertIsNone(self.find_module('asdfjkl;'))
37 39
38 40
39 (Frozen_FinderTests, 41 (Frozen_FinderTests,
40 Source_FinderTests 42 Source_FinderTests
41 ) = util.test_both(FinderTests, machinery=machinery) 43 ) = util.test_both(FinderTests, machinery=machinery)
42 44
43 45
44 if __name__ == '__main__': 46 if __name__ == '__main__':
45 unittest.main() 47 unittest.main()
OLDNEW
« no previous file with comments | « Lib/test/test_import/__init__.py ('k') | Lib/test/test_importlib/extension/test_loader.py » ('j') | no next file with comments »

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