diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-02-05 08:00:04 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-05 11:00:04 -0500 |
| commit | 4d425abc84cd0bae1613aa9b81a7f2fc76ed1ba3 (patch) | |
| tree | 2e131c8888077ba53dd96406114a6f381fb50dd6 | |
| parent | 1e280f031eb679520ebe2a90d136920711caae29 (diff) | |
Removed redundant os.chdir() in RunInTmpDirMixin child classes.
setUp() already calls os.chdir(self.test_dir).
| -rw-r--r-- | tests/i18n/test_extraction.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index 4c906654e8..74ccb84d61 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -37,7 +37,6 @@ class ExtractorTests(POFileAssertionMixin, RunInTmpDirMixin, SimpleTestCase): PO_FILE = 'locale/%s/LC_MESSAGES/django.po' % LOCALE def _run_makemessages(self, **options): - os.chdir(self.test_dir) out = StringIO() management.call_command('makemessages', locale=[LOCALE], verbosity=2, stdout=out, **options) output = out.getvalue() @@ -500,7 +499,6 @@ class SymlinkExtractorTests(ExtractorTests): os.symlink(os.path.join(self.test_dir, 'templates'), self.symlinked_dir) else: self.skipTest("os.symlink() not available on this OS + Python version combination.") - os.chdir(self.test_dir) management.call_command('makemessages', locale=[LOCALE], verbosity=0, symlinks=True) self.assertTrue(os.path.exists(self.PO_FILE)) with open(self.PO_FILE) as fp: |
