[Patch] Mac OS X test failure

Issue #314 resolved
Stefan H. Holek
created an issue

Temp dirs don't compare equal on Mac, due to /var -> /private/var symlink.

{{{

FAIL: test_local_index (setuptools.tests.test_easy_install.TestUserInstallTest)

Traceback (most recent call last): File "/Users/stefan/sandbox/distribute/build/src/setuptools/tests/test_easy_install.py", line 249, in test_local_index self.assertEquals(res.location, new_location) AssertionError: '/private/var/folders/OC/OCb2RUW-GHabVgL9s9A+IU+++TI/-Tmp-/tmpsue26k' != '/var/folders/OC/OCb2RUW-GHabVgL9s9A+IU+++TI/-Tmp-/tmpsue26k' - /private/var/folders/OC/OCb2RUW-GHabVgL9s9A+IU+++TI/-Tmp-/tmpsue26k ? -------- + /var/folders/OC/OCb2RUW-GHabVgL9s9A+IU+++TI/-Tmp-/tmpsue26k }}}

Use os.path.realpath to normalize temp dirs: [[https://bitbucket.org/stefanholek/distribute/changeset/e0d73fb137f4]]