Kaydet (Commit) d0118e16 authored tarafından Jason R. Coombs's avatar Jason R. Coombs

Restored test by specifying that the symlink links to a target (currently…

Restored test by specifying that the symlink links to a target (currently required for Windows symlinks). See issue15093 for details.
üst 69f34394
...@@ -721,12 +721,11 @@ class TestSymbolicallyLinkedPackage(unittest.TestCase): ...@@ -721,12 +721,11 @@ class TestSymbolicallyLinkedPackage(unittest.TestCase):
# now create a symlink to the tagged package # now create a symlink to the tagged package
# sample -> sample-tagged # 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) self.addCleanup(test.support.unlink, self.package_name)
importlib.invalidate_caches() 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')) assert os.path.isfile(os.path.join(self.package_name, '__init__.py'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment