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

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

Issue 19600: Use specific asserts in distutils tests
Patch Set: Created 5 years, 11 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.config.""" 1 """Tests for distutils.command.config."""
2 import unittest 2 import unittest
3 import os 3 import os
4 import sys 4 import sys
5 from test.support import run_unittest 5 from test.support import run_unittest
6 6
7 from distutils.command.config import dump_file, config 7 from distutils.command.config import dump_file, config
8 from distutils.tests import support 8 from distutils.tests import support
9 from distutils import log 9 from distutils import log
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 self.write_file(f2, 'xxx') 74 self.write_file(f2, 'xxx')
75 75
76 for f in (f1, f2): 76 for f in (f1, f2):
77 self.assertTrue(os.path.exists(f)) 77 self.assertTrue(os.path.exists(f))
78 78
79 pkg_dir, dist = self.create_dist() 79 pkg_dir, dist = self.create_dist()
80 cmd = config(dist) 80 cmd = config(dist)
81 cmd._clean(f1, f2) 81 cmd._clean(f1, f2)
82 82
83 for f in (f1, f2): 83 for f in (f1, f2):
84 self.assertTrue(not os.path.exists(f)) 84 self.assertFalse(os.path.exists(f))
85 85
86 def test_suite(): 86 def test_suite():
87 return unittest.makeSuite(ConfigTestCase) 87 return unittest.makeSuite(ConfigTestCase)
88 88
89 if __name__ == "__main__": 89 if __name__ == "__main__":
90 run_unittest(test_suite()) 90 run_unittest(test_suite())
OLDNEW

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