1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Touch command may not be available on Windows

This commit is contained in:
Paul Moore 2020-01-15 15:14:22 +00:00
parent cf722df4f9
commit 3288d902e6

View file

@ -267,7 +267,7 @@ def test_freeze_git_clone(script, tmpdir):
# Create a new commit to ensure that the commit has only one branch # Create a new commit to ensure that the commit has only one branch
# or tag name associated to it (to avoid the non-determinism reported # or tag name associated to it (to avoid the non-determinism reported
# in issue #1867). # in issue #1867).
script.run('touch', 'newfile', cwd=repo_dir) (repo_dir / 'newfile').touch()
script.run('git', 'add', 'newfile', cwd=repo_dir) script.run('git', 'add', 'newfile', cwd=repo_dir)
_git_commit(script, repo_dir, message='...') _git_commit(script, repo_dir, message='...')
result = script.pip('freeze', expect_stderr=True) result = script.pip('freeze', expect_stderr=True)