tests/test-walkrepo.py
branchstable
changeset 16321 e1615a24b73a
parent 14971 0b21ae0a2366
child 16683 525fdb738975
--- a/tests/test-walkrepo.py	Sat Mar 31 10:44:31 2012 -0500
+++ b/tests/test-walkrepo.py	Sat Mar 31 10:44:31 2012 -0500
@@ -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')