forked from pool/python-ansi2html
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
|
|
diff -ru ansi2html-1.5.2/tests/test_ansi2html.py ansi2html-1.5.2-new/tests/test_ansi2html.py
|
||
|
|
--- a/tests/test_ansi2html.py 2018-10-22 16:44:16.000000000 +0200
|
||
|
|
+++ b/tests/test_ansi2html.py 2020-03-26 08:24:03.619984982 +0100
|
||
|
|
@@ -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 @@
|
||
|
|
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 -ru ansi2html-1.5.2/tox.ini ansi2html-1.5.2-new/tox.ini
|
||
|
|
--- a/tox.ini 2018-10-22 16:44:16.000000000 +0200
|
||
|
|
+++ b/tox.ini 2020-03-26 08:24:03.619984982 +0100
|
||
|
|
@@ -9,8 +9,7 @@
|
||
|
|
py35: python3.5
|
||
|
|
py36: python3.6
|
||
|
|
deps =
|
||
|
|
- nose
|
||
|
|
mock
|
||
|
|
sitepackages = False
|
||
|
|
commands =
|
||
|
|
- nosetests tests/test_ansi2html.py
|
||
|
|
+ unittest tests/test_ansi2html.py
|