Merge pull request #3612 from nicolasnoble/useful-assert-is-useful
Get sanity to output more interesting information if it fails.
This commit is contained in:
commit
a9154a36fb
|
|
@ -78,8 +78,8 @@ jobset.run(jobs)
|
|||
if test is not None:
|
||||
for s, g in test.iteritems():
|
||||
if os.path.isfile(g):
|
||||
assert(0 == os.system('diff %s %s' % (s, g)))
|
||||
assert 0 == os.system('diff %s %s' % (s, g)), s
|
||||
os.unlink(g)
|
||||
else:
|
||||
assert(0 == os.system('diff -r %s %s' % (s, g)))
|
||||
assert 0 == os.system('diff -r %s %s' % (s, g)), s
|
||||
shutil.rmtree(g, ignore_errors=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue