From 0fb64309cead338699b64f5b7c0ed919cd879fb0 Mon Sep 17 00:00:00 2001 From: Paolo Stivanin Date: Wed, 14 Oct 2020 15:40:28 +0200 Subject: [PATCH] Remove nose (#103) Co-authored-by: Sorin Sbarnea --- tests/test_ansi2html.py | 4 ++-- tox.ini | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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