Skip to content

Commit

Permalink
Remove nose (pycontribs#103)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <ssbarnea@users.noreply.github.com>
  • Loading branch information
2 people authored and ahmubashshir committed May 30, 2022
1 parent c29d512 commit 0fb6430
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 0fb6430

Please sign in to comment.