Touch command may not be available on Windows (#7601)

This commit is contained in:
Pradyun Gedam 2020-01-15 16:08:17 +00:00 committed by GitHub
commit 8bc1024a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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
# or tag name associated to it (to avoid the non-determinism reported
# in issue #1867).
script.run('touch', 'newfile', cwd=repo_dir)
(repo_dir / 'newfile').touch()
script.run('git', 'add', 'newfile', cwd=repo_dir)
_git_commit(script, repo_dir, message='...')
result = script.pip('freeze', expect_stderr=True)