ipython/ipython — pull request #1973 by ivanov (2012-06-16 08:39:42+00:00)
Title: fix another FreeBSD $HOME symlink issue

without these changes, I get this error in `IPython.core` on FreeBSD 9.0

```
FAIL: test_cwd_x (IPython.core.tests.test_prompts.PromptTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/pi/code/ipython/IPython/core/tests/test_prompts.py", line 107, in test_cwd_x
self.assertEquals(p, '~')
AssertionError: u'/usr~' != '~'
"u'/usr~' != '~'" = '%s != %s' % (safe_repr(u'/usr~'), safe_repr('~'))
"u'/usr~' != '~'" = self._formatMessage("u'/usr~' != '~'", "u'/usr~' != '~'")
>> raise self.failureException("u'/usr~' != '~'")
```

I've verified that this change does not break any tests under Ubuntu when HOME happens to be symlinked.

I don't know how this will affect windows