diff options
| author | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-05-15 20:20:10 (GMT) |
|---|---|---|
| committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-05-15 20:20:10 (GMT) |
| commit | b28df76ee2cdd0bb2a941bc179f347c26e4254f5 (patch) | |
| tree | 8ef197f03e74cfc3f140383d68137fec868225d1 /Lib/test/test_stat.py | |
| parent | 0fb41b56ea1415943569ee6dda1c9d1aec952c37 (diff) | |
| download | cpython-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/test/test_stat.py')
| -rw-r--r-- | Lib/test/test_stat.py | 2 |
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): |
