Message189484
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) |
|
Date |
User |
Action |
Args |
2013-05-17 20:42:59 | vstinner | set | recipients:
+ vstinner, pitrou, neologix, serhiy.storchaka, jasujm |
2013-05-17 20:42:59 | vstinner | set | messageid: <1368823379.66.0.491214912792.issue17976@psf.upfronthosting.co.za> |
2013-05-17 20:42:59 | vstinner | link | issue17976 messages |
2013-05-17 20:42:59 | vstinner | create | |
|