Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace six in tests/unit/test_run.py #2439

Merged
merged 1 commit into from Nov 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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