Skip to content

Commit

Permalink
Attempt to fix failing tests on Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
iafisher committed Jul 12, 2019
1 parent dd5ddac commit 33ec1f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,19 +1522,19 @@ def test_location_to_instruction_number_with_label(debugger):
def test_location_to_instruction_number_fails_with_constant(debugger):
with pytest.raises(ValueError) as e:
debugger.location_to_instruction_number("N")
assert "could not locate label `N`" in str(e)
assert "could not locate label `N`" in str(e.value)


def test_location_to_instruction_number_out_of_range(debugger):
with pytest.raises(ValueError) as e:
debugger.location_to_instruction_number("100")
assert "could not find corresponding line" in str(e)
assert "could not find corresponding line" in str(e.value)


def test_location_to_instruction_number_invalid_format(debugger):
with pytest.raises(ValueError) as e:
debugger.location_to_instruction_number("a")
assert "could not locate label `a`" in str(e)
assert "could not locate label `a`" in str(e.value)


def test_instruction_number_to_location(debugger):
Expand Down
2 changes: 1 addition & 1 deletion test/test_unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_register_to_index_with_named_registers():
def test_register_to_index_with_invalid_register():
with pytest.raises(HERAError) as e:
register_to_index("R16")
assert "R16" in str(e)
assert "R16" in str(e.value)


def test_align_caret():
Expand Down

0 comments on commit 33ec1f0

Please sign in to comment.