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
4 changes: 2 additions & 2 deletions tests/test_ansi2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from ansi2html.util import read_to_unicode

from mock import patch
from nose.tools import eq_

import unittest
import six
Expand Down Expand Up @@ -117,7 +116,8 @@ def test_inline_as_command(self, mock_stdout, mock_argv):
with patch("sys.stdin", new_callable=lambda: six.StringIO(test_input)):
main()

eq_(mock_stdout.getvalue(), test_input)
ms_val = mock_stdout.getvalue()
assert ms_val == test_input, "%r != %r" % (ms_val, test_input)

@patch("sys.argv", new_callable=lambda: ["ansi2html", "--partial"])
@patch("sys.stdout", new_callable=six.StringIO)
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ envlist =

[testenv]
deps =
nose
mock
sitepackages = False
commands =
nosetests tests/test_ansi2html.py
python -m unittest tests/test_ansi2html.py

[testenv:packaging]
description =
Do packaging/distribution. If tag is not present or PEP440 compliant upload to
Expand Down