Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Aug 23, 2020
1 parent 765fc89 commit a407870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/activation/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def __call__(self, monkeypatch, tmp_path):
# check line endings are correct type
script_content = activate_script.read_bytes()
for line in script_content.split(b"\n")[:-1]:
cr = b'\r' if sys.version_info.major == 2 else 13
cr = b"\r" if sys.version_info.major == 2 else 13
if self.unix_line_ending:
assert line and line[-1] != cr, script_content.decode("utf-8")
assert line == b"" or line[-1] != cr, script_content.decode("utf-8")
else:
assert line[-1] == cr, script_content.decode("utf-8")

Expand Down

0 comments on commit a407870

Please sign in to comment.