Skip to content
Snippets Groups Projects
Commit a9154a36 authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #3612 from nicolasnoble/useful-assert-is-useful

Get sanity to output more interesting information if it fails.
parents 2a548d08 9baaeade
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment