Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion html5lib/tests/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def convertData(data):


def errorMessage(input, expected, actual):
msg = ("Input:\n%s\nExpected:\n%s\nRecieved\n%s\n" %
msg = ("Input:\n%s\nExpected:\n%s\nReceived\n%s\n" %
(repr(input), repr(expected), repr(actual)))
if sys.version_info[0] == 2:
msg = msg.encode("ascii", "backslashreplace")
Expand Down
4 changes: 2 additions & 2 deletions html5lib/tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def test_errorMessage():

# Assertions!
if six.PY2:
assert b"Input:\n1\nExpected:\n2\nRecieved\n3\n" == r
assert b"Input:\n1\nExpected:\n2\nReceived\n3\n" == r
else:
assert six.PY3
assert "Input:\n1\nExpected:\n2\nRecieved\n3\n" == r
assert "Input:\n1\nExpected:\n2\nReceived\n3\n" == r

assert input.__repr__.call_count == 1
assert expected.__repr__.call_count == 1
Expand Down