comparison python/unroll_deps.py @ 155:f7cfd58eafe6

raise the correct exception
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 13 Jul 2011 09:17:05 -0700
parents b86b070fbdd1
children da62e6411ab7
comparison
equal deleted inserted replaced
154:b86b070fbdd1 155:f7cfd58eafe6
70 70
71 # ensure cycle check works 71 # ensure cycle check works
72 deps['packageD'] = set(['packageX']) 72 deps['packageD'] = set(['packageX'])
73 try: 73 try:
74 unroll_dependencies(deps) 74 unroll_dependencies(deps)
75 raise AssertionError("Missed a cyclic dependency!") 75 raise Exception("Missed a cyclic dependency!")
76 except AssertionError: 76 except AssertionError:
77 pass 77 pass
78 78
79 try: 79 try:
80 unroll_dependencies2(deps) 80 unroll_dependencies2(deps)
81 raise AssertionError("Missed a cyclic dependency!") 81 raise Exception("Missed a cyclic dependency!")
82 except AssertionError: 82 except AssertionError:
83 pass 83 pass