From 1e280f031eb679520ebe2a90d136920711caae29 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 5 Feb 2019 05:14:23 -0800 Subject: [PATCH] Removed unused branch from SymlinkExtractorTests.test_symlink(). Unused since bb7bb379e8cd91a91336946829519d64e919a1d2. SymlinkExtractorTests.test_dir, which contains SymlinkExtractorTests.symlinked_dir, is deleted after every test. --- tests/i18n/test_extraction.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index 87f60c6639..4c906654e8 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -496,13 +496,10 @@ class SymlinkExtractorTests(ExtractorTests): self.symlinked_dir = os.path.join(self.test_dir, 'templates_symlinked') def test_symlink(self): - if os.path.exists(self.symlinked_dir): - self.assertTrue(os.path.islink(self.symlinked_dir)) + if symlinks_supported(): + os.symlink(os.path.join(self.test_dir, 'templates'), self.symlinked_dir) else: - if symlinks_supported(): - 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.") + 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))