Skip to content

Commit

Permalink
Merge pull request #8272 from charris/backport-8271
Browse files Browse the repository at this point in the history
TST: Path test should resolve symlinks when comparing
  • Loading branch information
charris committed Nov 13, 2016
2 parents 256b3aa + f8b3194 commit d414056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions numpy/core/tests/test_memmap.py
Expand Up @@ -79,11 +79,11 @@ def test_path(self):
tmpname = mktemp('', 'mmap', dir=self.tempdir)
fp = memmap(Path(tmpname), dtype=self.dtype, mode='w+',
shape=self.shape)
abspath = os.path.abspath(tmpname)
abspath = os.path.realpath(os.path.abspath(tmpname))
fp[:] = self.data[:]
self.assertEqual(abspath, str(fp.filename))
self.assertEqual(abspath, str(fp.filename.resolve()))
b = fp[:1]
self.assertEqual(abspath, str(b.filename))
self.assertEqual(abspath, str(b.filename.resolve()))
del b
del fp

Expand Down

0 comments on commit d414056

Please sign in to comment.