From: Jason R. Coombs Date: Thu, 26 Jul 2012 19:21:17 +0000 (-0400) Subject: Restored test by specifying that the symlink links to a target (currently required... X-Git-Tag: v3.3.0b2~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0118e16a14b09dcc43e35bfd57bdb3a11c7f926;p=python Restored test by specifying that the symlink links to a target (currently required for Windows symlinks). See issue15093 for details. --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 84b1263282..8344b78715 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -721,12 +721,11 @@ class TestSymbolicallyLinkedPackage(unittest.TestCase): # now create a symlink to the tagged package # sample -> sample-tagged - os.symlink(self.tagged, self.package_name) + os.symlink(self.tagged, self.package_name, target_is_directory=True) self.addCleanup(test.support.unlink, self.package_name) importlib.invalidate_caches() - # disabled because os.isdir currently fails (see issue 15093) - # self.assertEqual(os.path.isdir(self.package_name), True) + self.assertEqual(os.path.isdir(self.package_name), True) assert os.path.isfile(os.path.join(self.package_name, '__init__.py'))