diff options
| author | Tobias McNulty <tobias@caktusgroup.com> | 2016-07-21 13:54:35 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-07-21 13:54:35 -0400 |
| commit | 915786785f6f4439267a513d359c501eddd88266 (patch) | |
| tree | cfc6e28f2e7e35aa653bd20fcc0e4629a3134f41 | |
| parent | 8e5cbc884f77c85b0edbc6206810643abaf589c9 (diff) | |
Fixed #26924 -- Fixed i18n test failure on Mac OS X.
| -rw-r--r-- | tests/i18n/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i18n/utils.py b/tests/i18n/utils.py index f66e826d19..c198afbc43 100644 --- a/tests/i18n/utils.py +++ b/tests/i18n/utils.py @@ -47,7 +47,8 @@ class RunInTmpDirMixin(object): def setUp(self): self._cwd = os.getcwd() self.work_dir = tempfile.mkdtemp(prefix='i18n_') - self.test_dir = os.path.abspath(os.path.join(self.work_dir, self.work_subdir)) + # Resolve symlinks, if any, in test directory paths. + self.test_dir = os.path.realpath(os.path.join(self.work_dir, self.work_subdir)) copytree(os.path.join(source_code_dir, self.work_subdir), self.test_dir) # Step out of the temporary working tree before removing it to avoid # deletion problems on Windows. Cleanup actions registered with |
