Skip to content

Commit

Permalink
Replace six in tests/unit/test_run.py
Browse files Browse the repository at this point in the history
six not in requirements since:
b85542c ("Drop support of running under Python 2.7 (pypa#2382)", 2022-07-25)
  • Loading branch information
cjmayo committed Nov 2, 2022
1 parent 1e90b97 commit 894d50f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/unit/test_run.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging

import pytest
import six

from virtualenv import __version__
from virtualenv.run import cli_run, session_via_cli
Expand All @@ -22,10 +21,8 @@ def test_version(capsys):
cli_run(args=["--version"])
assert context.value.code == 0

out, err = capsys.readouterr()
extra = out if six.PY2 else err
content = out if six.PY3 else err
assert not extra
content, err = capsys.readouterr()
assert not err

assert __version__ in content
import virtualenv
Expand Down

0 comments on commit 894d50f

Please sign in to comment.