diff --git a/tests/test_ansi2html.py b/tests/test_ansi2html.py index 788127e..c82c9b5 100755 --- a/tests/test_ansi2html.py +++ b/tests/test_ansi2html.py @@ -31,7 +31,6 @@ from ansi2html.util import read_to_unicode from mock import patch -from nose.tools import eq_ import unittest import six @@ -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) diff --git a/tox.ini b/tox.ini index bee2ae5..de1ee99 100644 --- a/tox.ini +++ b/tox.ini @@ -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