Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 833:312b37bc5e20
tests: avoid shadowing Python builtin all()
author | Yonggang Luo <luoyonggang@gmail.com> |
---|---|
date | Wed, 12 Oct 2011 15:43:31 +0800 |
parents | e9af7eba88db |
children | 04729f3a3d17 |
comparison
equal
deleted
inserted
replaced
832:e9af7eba88db | 833:312b37bc5e20 |
---|---|
222 repo['oldest']) | 222 repo['oldest']) |
223 self.assertEqual(node.hex(repo['tip'].node()), | 223 self.assertEqual(node.hex(repo['tip'].node()), |
224 '1a6c3f30911d57abb67c257ec0df3e7bc44786f7') | 224 '1a6c3f30911d57abb67c257ec0df3e7bc44786f7') |
225 | 225 |
226 def suite(): | 226 def suite(): |
227 all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), | 227 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), |
228 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), | 228 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), |
229 ] | 229 ] |
230 return unittest.TestSuite(all) | 230 return unittest.TestSuite(all_tests) |