This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jibel
Recipients jibel
Date 2013-04-16.08:13:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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/ -v -w test_shutil
FAIL: test_non_matching_mode (test.test_shutil.TestWhich)
Traceback (most recent call last):
  File "/usr/lib/python3.3/test/", line 1334, in test_non_matching_mode
AssertionError: '/tmp/Tmpnf1xg5/Tmptzup_q.Exe' is not None


Possible solutions:
- skip the test when running as root
- search for a file with executable bit set instead of writeable
- set immutable attribute on the file
Date User Action Args
2013-04-16 08:13:18jibelsetrecipients: + jibel
2013-04-16 08:13:18jibelsetmessageid: <>
2013-04-16 08:13:18jibellinkissue17746 messages
2013-04-16 08:13:17jibelcreate