Permalink
Browse files

Improve messaged in tests

  • Loading branch information...
1 parent 46b2dc9 commit 206bcd472d9c26cf33e27d45436458705fce5066 @swarmer swarmer committed Apr 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests.py
View
@@ -16,13 +16,13 @@ def example(name):
def check_path(assembler, path):
code = subprocess.call([assembler, path, ASSEMBLY_OUTPUT])
- nose.assert_equal(code, 0, assembler)
+ nose.assert_equal(code, 0, "Assembly of {0} failed!".format(path))
assert path.endswith(".asm")
binary = os.path.join(BINARY_DIR, os.path.basename(path)[:-4] + ".bin")
if os.path.exists(binary):
with open(ASSEMBLY_OUTPUT, "rb") as testing, open(binary, "rb") as tested:
- nose.assert_equal(testing.read(), tested.read(), assembler)
+ nose.assert_equal(testing.read(), tested.read(), "Produced and tested binaries differ!")
# asm.py

0 comments on commit 206bcd4

Please sign in to comment.