diff tests/test-walkrepo.py @ 16321:e1615a24b73a stable

tests: make test-walkrepo use hg's symlink test
author Matt Mackall <mpm@selenic.com>
date Sat, 31 Mar 2012 10:44:31 -0500
parents 0b21ae0a2366
children 525fdb738975
line wrap: on
line diff
--- 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')