
The most recent test_codecs check-in (1.19) is failing on a MSCV6.0 compilation running on WinMe: ---------------------------------------------------------------------- Ran 35 tests in 1.430s FAILED (failures=1) Traceback (most recent call last): File "\py25\lib\test\test_codecs.py", line 786, in ? test_main() File "\py25\lib\test\test_codecs.py", line 781, in test_main BasicStrTest File "C:\PY25\lib\test\test_support.py", line 290, in run_unittest run_suite(suite, testclass) File "C:\PY25\lib\test\test_support.py", line 275, in run_suite raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "\py25\lib\test\test_codecs.py", line 165, in test_badbom self.assertRaises(UnicodeError, f.read) AssertionError: UnicodeError not raised C:\pydev>python Python 2.5a0 (#46, Feb 7 2005, 21:37:18) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. Raymond

Raymond Hettinger wrote:
The most recent test_codecs check-in (1.19) is failing on a MSCV6.0 compilation running on WinMe:
---------------------------------------------------------------------- Ran 35 tests in 1.430s
FAILED (failures=1) Traceback (most recent call last): [...] test.test_support.TestFailed: Traceback (most recent call last): File "\py25\lib\test\test_codecs.py", line 165, in test_badbom self.assertRaises(UnicodeError, f.read) AssertionError: UnicodeError not raised
Fixed. But the question remains: Why does a StreamWriter have a read() method? Bye, Walter Dörwald

Walter Dörwald wrote:
Raymond Hettinger wrote:
The most recent test_codecs check-in (1.19) is failing on a MSCV6.0 compilation running on WinMe:
---------------------------------------------------------------------- Ran 35 tests in 1.430s
FAILED (failures=1) Traceback (most recent call last):
[...]
test.test_support.TestFailed: Traceback (most recent call last): File "\py25\lib\test\test_codecs.py", line 165, in test_badbom self.assertRaises(UnicodeError, f.read) AssertionError: UnicodeError not raised
Fixed. But the question remains: Why does a StreamWriter have a read() method?
It inherits that method from the underlying stream - just as all other methods and attributes that the stream defines and which are not overridden by the StreamWriter methods. This approach was taken to make it possible to user StreamWriter (and StreamReader) instance as drop-in replacement in situations where the application normally expects a file-like object. Note that a file opened in write mode also exposes a read() method. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Feb 08 2005)
Python/Zope Consulting and Support ... http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
participants (3)
-
M.-A. Lemburg
-
Raymond Hettinger
-
Walter Dörwald