[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset b98380a1d979 by Serhiy Storchaka in branch '3.3': Issue #17746: Skip test_shutil.test_non_matching_mode when run as root or http://hg.python.org/cpython/rev/b98380a1d979 New changeset 96e543ba96a4 by Serhiy Storchaka in branch 'default': Issue

[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-05-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17746

[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which skips test_non_matching_mode when run as root (for early skip in discovery stage and for more appropriate for this case report) and when run on OS or FS which doesn't support read-only files (should cover all other cases). --

[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-05-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17746 ___ ___

[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-04-16 Thread Jean-Baptiste Lallement
New submission from Jean-Baptiste Lallement: The test test_shutil.TestWhich.test_non_matching_mode fails when running as root because the temporary file is always writeable for this user. To reproduce on linux: $ sudo python3.3 -E -Wd -tt /usr/lib/python3.3/test/regrtest.py -v -w test_shutil

[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-04-16 Thread Jean-Baptiste Lallement
Jean-Baptiste Lallement added the comment: Reference on LP: https://bugs.launchpad.net/ubuntu/+source/python3.3/+bug/1169458 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17746 ___

[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-04-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Library (Lib) -Tests nosy: +hynek, serhiy.storchaka, tarek stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17746

[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-04-16 Thread Matthias Klose
Matthias Klose added the comment: one way would be to skip this test when running as root. Would the check for the X bit work on Windows? @unittest.skipUnless(hasattr(os, 'getuid') and os.getuid() != 0, test always succeeds as root) -- nosy: +doko