Message127409
| Author |
pitrou |
| Recipients |
brett.cannon, eli.bendersky, giampaolo.rodola, ncoghlan, pitrou, r.david.murray |
| Date |
2011年01月29日.12:45:53 |
| SpamBayes Score |
0.019453805 |
| Marked as misclassified |
No |
| Message-id |
<1296305154.24.0.225323779244.issue11049@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
+ os.mkdir(os.path.join(TESTFN, TESTFN))
Please don't. This will break the day TESTFN becomes a non-trivial path.
+ def test_make_bad_fd(self):
+ fd = support.make_bad_fd()
+ self.assertRaises(OSError, os.write, fd, b"foo")
You should also check that the errno is EBADF. |
|