From 3288d902e63911bdc100c44de6797204f0a745df Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Wed, 15 Jan 2020 15:14:22 +0000 Subject: [PATCH] Touch command may not be available on Windows --- tests/functional/test_freeze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/test_freeze.py b/tests/functional/test_freeze.py index 2e35de3e6..a62dd271d 100644 --- a/tests/functional/test_freeze.py +++ b/tests/functional/test_freeze.py @@ -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)