summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-05-15 14:42:11 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-05-15 14:42:11 (GMT)
commitacfc26acb0dff670f68a59c82762e21e81cc7fb0 (patch)
tree2e1c5dde6999a37f4bcc41f8230e6b20af9c2d5e /Lib/test/test_os.py
parentb26fe2f313143139f7666f125b097d9c92a494ff (diff)
parent66bfcc1b0f3b1eb4905b3ef1054b8afc1219aacb (diff)
downloadcpython-acfc26acb0dff670f68a59c82762e21e81cc7fb0.zip
cpython-acfc26acb0dff670f68a59c82762e21e81cc7fb0.tar.gz
cpython-acfc26acb0dff670f68a59c82762e21e81cc7fb0.tar.bz2
merge heads
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 066bf72..1e0daf0 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -651,6 +651,7 @@ class WalkTests(unittest.TestCase):
# SUB2/ a file kid and a dirsymlink kid
# tmp3
# link/ a symlink to TESTFN.2
+ # broken_link
# TEST2/
# tmp4 a lone file
walk_path = join(support.TESTFN, "TEST1")
@@ -663,6 +664,8 @@ class WalkTests(unittest.TestCase):
link_path = join(sub2_path, "link")
t2_path = join(support.TESTFN, "TEST2")
tmp4_path = join(support.TESTFN, "TEST2", "tmp4")
+ link_path = join(sub2_path, "link")
+ broken_link_path = join(sub2_path, "broken_link")
# Create stuff.
os.makedirs(sub11_path)
@@ -679,7 +682,8 @@ class WalkTests(unittest.TestCase):
else:
symlink_to_dir = os.symlink
symlink_to_dir(os.path.abspath(t2_path), link_path)
- sub2_tree = (sub2_path, ["link"], ["tmp3"])
+ symlink_to_dir('broken', broken_link_path)
+ sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
else:
sub2_tree = (sub2_path, [], ["tmp3"])