Author pitrou
Recipients brett.cannon, eli.bendersky, giampaolo.rodola, ncoghlan, pitrou, r.david.murray
Date 2011-01-29.12:45:53
SpamBayes Score 0.0194538
Marked as misclassified No
Message-id <>
+        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.
Date User Action Args
2011-01-29 12:45:54pitrousetrecipients: + pitrou, brett.cannon, ncoghlan, giampaolo.rodola, r.david.murray, eli.bendersky
2011-01-29 12:45:54pitrousetmessageid: <>
2011-01-29 12:45:53pitroulinkissue11049 messages
2011-01-29 12:45:53pitroucreate