Revert "Update newline check"

This reverts commit 415566f5d6.
This commit is contained in:
Kyle Altendorf
2018-05-03 08:38:25 -07:00
parent 415566f5d6
commit 8a25696528
+2 -2
View File
@@ -83,14 +83,14 @@ six = {{version = "*", index = "pypi"}}
def test_maintain_file_line_endings(PipenvInstance, pypi, newlines, target):
with PipenvInstance(pypi=pypi, chdir=True) as p:
path = getattr(p, target)
c = p.pipenv('install six')
c = p.pipenv('install')
assert c.return_code == 0
with io.open(path) as f:
contents = f.read()
written_newlines = f.newlines
assert written_newlines == u'\n'
assert f.newlines == u'\n'
if target == 'lockfile_path':
project = Project()
project._lockfile_newlines = newlines