summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2021-01-19 00:44:19 +0000
committerGitHub <noreply@github.com>2021-01-19 00:44:19 +0000
commita9b0f3b7cd06e20d39eb8b82e7065ab7fae1a06b (patch)
treef4e277d1ae05954af19f77ba71eafa4bfec87561 /tests/unit
parent40aec4824e04963185d1f5e218b6a1c0c86ce3df (diff)
downloadvirtualenv-a9b0f3b7cd06e20d39eb8b82e7065ab7fae1a06b.tar.gz
Fix Windows failure (#2056)
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/config/test___main__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/config/test___main__.py b/tests/unit/config/test___main__.py
index 5b93563..b974712 100644
--- a/tests/unit/config/test___main__.py
+++ b/tests/unit/config/test___main__.py
@@ -1,6 +1,5 @@
from __future__ import absolute_import, unicode_literals
-import os
import re
import sys
@@ -91,8 +90,9 @@ def test_session_report_subprocess(session_app_data, tmp_path):
# when called via a subprocess the logging framework should flush and POSIX line normalization happen
out = subprocess.check_output(
[sys.executable, "-m", "virtualenv", str(tmp_path), "--activators", "powershell", "--without-pip"],
+ universal_newlines=True,
)
- lines = out.decode().split(os.linesep)
+ lines = out.split("\n")
regexes = [
r"created virtual environment .* in \d+ms",
r" creator .*",