# HG changeset patch # User Matt Mackall # Date 2012-03-31 15:44:31 # Node ID e1615a24b73a7b86afeb852966606cdd433e0793 # Parent e11ab387e89c449b013c3653a25abc1672115754 tests: make test-walkrepo use hg's symlink test diff --git a/tests/test-walkrepo.py b/tests/test-walkrepo.py --- a/tests/test-walkrepo.py +++ b/tests/test-walkrepo.py @@ -1,11 +1,12 @@ import os from mercurial import hg, ui from mercurial.scmutil import walkrepos +from mercurial.util import checklink from os import mkdir, chdir from os.path import join as pjoin u = ui.ui() -sym = getattr(os, 'symlink', False) and getattr(os.path, 'samestat', False) +sym = checklink('.') hg.repository(u, 'top1', create=1) mkdir('subdir')