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

Side by Side Diff: Lib/test/test_sundry.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_subprocess.py ('k') | Lib/test/test_sysconfig.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 """Do a minimal test of all the modules that aren't otherwise tested.""" 1 """Do a minimal test of all the modules that aren't otherwise tested."""
2 import importlib 2 import importlib
3 import sys 3 import sys
4 from test import support 4 from test import support
5 import unittest 5 import unittest
6 6
7 class TestUntestedModules(unittest.TestCase): 7 class TestUntestedModules(unittest.TestCase):
8 def test_untested_modules_can_be_imported(self): 8 def test_untested_modules_can_be_imported(self):
9 untested = ('bdb', 'encodings', 'formatter', 9 untested = ('bdb', 'encodings', 'formatter',
10 'nturl2path', 'tabnanny') 10 'nturl2path', 'tabnanny')
11 with support.check_warnings(quiet=True): 11 with support.check_warnings(quiet=True):
12 for name in untested: 12 for name in untested:
13 try: 13 try:
14 support.import_module('test.test_{}'.format(name)) 14 support.import_module('test.test_{}'.format(name))
15 except unittest.SkipTest: 15 except unittest.SkipTest:
16 importlib.import_module(name) 16 importlib.import_module(name)
17 else: 17 else:
18 self.fail('{} has tests even though test_sundry claims ' 18 self.fail('{} has tests even though test_sundry claims '
19 'otherwise'.format(name)) 19 'otherwise'.format(name))
20 20
21 import distutils.bcppcompiler 21 import distutils.bcppcompiler
22 import distutils.ccompiler 22 import distutils.ccompiler
23 import distutils.cygwinccompiler 23 if sys.platform.startswith('win'):
24 import distutils.cygwinccompiler
24 import distutils.filelist 25 import distutils.filelist
25 import distutils.text_file 26 import distutils.text_file
26 import distutils.unixccompiler 27 import distutils.unixccompiler
27 28
28 import distutils.command.bdist_dumb 29 import distutils.command.bdist_dumb
29 if sys.platform.startswith('win'): 30 if sys.platform.startswith('win'):
30 import distutils.command.bdist_msi 31 import distutils.command.bdist_msi
31 import distutils.command.bdist 32 import distutils.command.bdist
32 import distutils.command.bdist_rpm 33 import distutils.command.bdist_rpm
33 import distutils.command.bdist_wininst 34 import distutils.command.bdist_wininst
(...skipping 14 matching lines...) Expand all
48 49
49 try: 50 try:
50 import tty # Not available on Windows 51 import tty # Not available on Windows
51 except ImportError: 52 except ImportError:
52 if support.verbose: 53 if support.verbose:
53 print("skipping tty") 54 print("skipping tty")
54 55
55 56
56 if __name__ == "__main__": 57 if __name__ == "__main__":
57 unittest.main() 58 unittest.main()
OLDNEW
« no previous file with comments | « Lib/test/test_subprocess.py ('k') | Lib/test/test_sysconfig.py » ('j') | no next file with comments »

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