From: Dave Coombs Date: Thu, 14 Jan 2010 01:13:38 +0000 (-0500) Subject: Change t/tindex.py to pass on Mac OS. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c0fe4a295c57efd9ffabbe26cdae4403919d849a;p=packages%2Fb%2Fbup.git Change t/tindex.py to pass on Mac OS. 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. --- diff --git a/t/tindex.py b/t/tindex.py index 9922b8f..48341c0 100644 --- a/t/tindex.py +++ b/t/tindex.py @@ -9,5 +9,5 @@ def testbasic(): 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')