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 vstinner
Recipients jasujm, neologix, pitrou, serhiy.storchaka, vstinner
Date 2013-05-17.20:42:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368823379.66.0.491214912792.issue17976@psf.upfronthosting.co.za>
In-reply-to
Content
Attached: Test expressed as an unit test, test_dev_null.py.

The test pass with Python 3 which does not use the "FILE*" API anymore. So you should maybe migrate to Python 3 :-)


$ python3.4 test_dev_null.py
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s

OK


$ python2.7 test_dev_null.py
.F
======================================================================
FAIL: test_write2 (__main__.TestFull)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_dev_null.py", line 13, in test_write2
    self.assertRaises(IOError, self.check_write, 'hello', '\n')
AssertionError: IOError not raised

----------------------------------------------------------------------
Ran 2 tests in 0.002s

FAILED (failures=1)
History
Date User Action Args
2013-05-17 20:42:59vstinnersetrecipients: + vstinner, pitrou, neologix, serhiy.storchaka, jasujm
2013-05-17 20:42:59vstinnersetmessageid: <1368823379.66.0.491214912792.issue17976@psf.upfronthosting.co.za>
2013-05-17 20:42:59vstinnerlinkissue17976 messages
2013-05-17 20:42:59vstinnercreate