Skip to content

Commit

Permalink
Replace six in tests/unit/test_run.py (#2439)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo committed Nov 10, 2022
1 parent 1e90b97 commit 2224abb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/unit/test_run.py
@@ -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 2224abb

Please sign in to comment.