Skip to content

Commit a82a79b

Browse files
authored
Merge pull request #1717 from pre-commit/fix_test
fix symlink test for windows
2 parents f15cfbb + e6c9b04 commit a82a79b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/commands/run_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ def test_classifier_does_not_normalize_backslashes_non_windows(tmpdir):
966966

967967
def test_classifier_empty_types_or(tmpdir):
968968
tmpdir.join('bar').ensure()
969-
tmpdir.join('foo').mksymlinkto('bar')
969+
os.symlink(tmpdir.join('bar'), tmpdir.join('foo'))
970970
with tmpdir.as_cwd():
971971
classifier = Classifier(('foo', 'bar'))
972972
for_symlink = classifier.by_types(

0 commit comments

Comments
 (0)