tests: make test-walkrepo use hg's symlink test stable
authorMatt Mackall <mpm@selenic.com>
Sat, 31 Mar 2012 10:44:31 -0500
branchstable
changeset 16321 e1615a24b73a
parent 16320 e11ab387e89c
child 16322 ba96dd4655a0
tests: make test-walkrepo use hg's symlink test
tests/test-walkrepo.py
--- 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')