Skip to content

Commit

Permalink
Fix undefined variable error
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Apr 16, 2018
1 parent 14f4a98 commit 623f48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_highlight.py
Expand Up @@ -77,7 +77,7 @@ def _test_highlight_diff(self, filename, a, b, diff_type):
assert a_lines[line.line_before - 1] == source
assert b_lines[line.line_after - 1] == source
else:
raise AssertionError('Unknown tag {0}'.format(tag))
raise AssertionError('Unknown tag {0}'.format(line.tag))

# Check that removing tags gives a patch that can be applied
patch = ''.join(striptags(line.contents) for line in highlighted)
Expand Down

0 comments on commit 623f48c

Please sign in to comment.