summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2012-05-15 20:20:10 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2012-05-15 20:20:10 (GMT)
commitb28df76ee2cdd0bb2a941bc179f347c26e4254f5 (patch)
tree8ef197f03e74cfc3f140383d68137fec868225d1 /Lib
parent0fb41b56ea1415943569ee6dda1c9d1aec952c37 (diff)
downloadcpython-b28df76ee2cdd0bb2a941bc179f347c26e4254f5.zip
cpython-b28df76ee2cdd0bb2a941bc179f347c26e4254f5.tar.gz
cpython-b28df76ee2cdd0bb2a941bc179f347c26e4254f5.tar.bz2
#14807: fix bb failure due to symlink test relying on hard-coded permissions
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_stat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_stat.py b/Lib/test/test_stat.py
index f22d865..283e847 100644
--- a/Lib/test/test_stat.py
+++ b/Lib/test/test_stat.py
@@ -40,7 +40,7 @@ class TestFilemode(unittest.TestCase):
@unittest.skipUnless(hasattr(os, 'symlink'), 'os.symlink not available')
def test_link(self):
os.symlink(os.getcwd(), TESTFN)
- self.assertEqual(get_mode(), 'lrwxrwxrwx')
+ self.assertEqual(get_mode()[0], 'l')
@unittest.skipUnless(hasattr(os, 'mkfifo'), 'os.mkfifo not available')
def test_fifo(self):