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

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

Issue 19600: Use specific asserts in distutils tests
Patch Set: Created 5 years, 10 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
OLDNEW
1 """Tests for distutils.command.build_clib.""" 1 """Tests for distutils.command.build_clib."""
2 import unittest 2 import unittest
3 import os 3 import os
4 import sys 4 import sys
5 5
6 from test.support import run_unittest 6 from test.support import run_unittest
7 7
8 from distutils.command.build_clib import build_clib 8 from distutils.command.build_clib import build_clib
9 from distutils.errors import DistutilsSetupError 9 from distutils.errors import DistutilsSetupError
10 from distutils.tests import support 10 from distutils.tests import support
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 for ccmd in compiler.executables.values(): 130 for ccmd in compiler.executables.values():
131 if ccmd is None: 131 if ccmd is None:
132 continue 132 continue
133 if find_executable(ccmd[0]) is None: 133 if find_executable(ccmd[0]) is None:
134 return # can't test 134 return # can't test
135 135
136 # this should work 136 # this should work
137 cmd.run() 137 cmd.run()
138 138
139 # let's check the result 139 # let's check the result
140 self.assertTrue('libfoo.a' in os.listdir(build_temp)) 140 self.assertIn('libfoo.a', os.listdir(build_temp))
141 141
142 def test_suite(): 142 def test_suite():
143 return unittest.makeSuite(BuildCLibTestCase) 143 return unittest.makeSuite(BuildCLibTestCase)
144 144
145 if __name__ == "__main__": 145 if __name__ == "__main__":
146 run_unittest(test_suite()) 146 run_unittest(test_suite())
OLDNEW

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