It turns out /etc is a symlink (to /private/etc) on Mac OS, so checking
that the realpath of t/sampledata/etc is /etc fails. Instead we now check
against the realpath of /etc.
sd = os.path.realpath('t/sampledata')
WVPASSEQ(index.realpath('t/sampledata'), cd + '/t/sampledata')
WVPASSEQ(os.path.realpath('t/sampledata/x'), sd + '/x')
- WVPASSEQ(os.path.realpath('t/sampledata/etc'), '/etc')
+ WVPASSEQ(os.path.realpath('t/sampledata/etc'), os.path.realpath('/etc'))
WVPASSEQ(index.realpath('t/sampledata/etc'), sd + '/etc')