summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-07-26 19:21:17 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2012-07-26 19:21:17 (GMT)
commitd0118e16a14b09dcc43e35bfd57bdb3a11c7f926 (patch)
tree937f2ce098da8efc768ff64bf1b263d499e88bd0 /Lib/test
parent69f343941fa7ec251fd7cbcbbbd121ecc1b9cc2f (diff)
downloadcpython-d0118e16a14b09dcc43e35bfd57bdb3a11c7f926.zip
cpython-d0118e16a14b09dcc43e35bfd57bdb3a11c7f926.tar.gz
cpython-d0118e16a14b09dcc43e35bfd57bdb3a11c7f926.tar.bz2
Restored test by specifying that the symlink links to a target (currently required for Windows symlinks). See issue15093 for details.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_import.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 84b1263..8344b78 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'))