]> granicus.if.org Git - python/commitdiff
Restored test by specifying that the symlink links to a target (currently required...
authorJason R. Coombs <jaraco@jaraco.com>
Thu, 26 Jul 2012 19:21:17 +0000 (15:21 -0400)
committerJason R. Coombs <jaraco@jaraco.com>
Thu, 26 Jul 2012 19:21:17 +0000 (15:21 -0400)
Lib/test/test_import.py

index 84b12632827a729210dd3248a9d3fda09f675273..8344b787152f3e1ca16de17964f22efc7ba4986c 100644 (file)
@@ -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'))