Message187054
| Author |
jibel |
| Recipients |
jibel |
| Date |
2013年04月16日.08:13:17 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1366099998.54.0.409643145074.issue17746@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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
[...]
======================================================================
FAIL: test_non_matching_mode (test.test_shutil.TestWhich)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.3/test/test_shutil.py", line 1334, in test_non_matching_mode
self.assertIsNone(rv)
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年04月16日 08:13:18 | jibel | set | recipients:
+ jibel |
| 2013年04月16日 08:13:18 | jibel | set | messageid: <1366099998.54.0.409643145074.issue17746@psf.upfronthosting.co.za> |
| 2013年04月16日 08:13:18 | jibel | link | issue17746 messages |
| 2013年04月16日 08:13:17 | jibel | create |
|