[Python-checkins] python/dist/src/Lib/test test_bz2.py,1.3,1.4
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Fri, 08 Nov 2002 21:22:44 -0800
- Previous message: [Python-checkins] python/dist/src/Lib/test test_bz2.py,1.2,1.3
- Next message: [Python-checkins] python/dist/src/Lib/test test_b1.py,1.56,1.57 test_bz2.py,1.4,1.5 test_codeccallbacks.py,1.2,1.3 test_pep277.py,1.4,1.5 test_sets.py,1.14,1.15 test_support.py,1.44,1.45 test_trace.py,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv21230/Lib/test
Modified Files:
test_bz2.py
Log Message:
Comment out the test docstrings so we can at least tell which tests are
failing.
Index: test_bz2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_bz2.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_bz2.py 9 Nov 2002 05:08:07 -0000 1.3
--- test_bz2.py 9 Nov 2002 05:22:41 -0000 1.4
***************
*** 44,48 ****
def testRead(self):
! "Test BZ2File.read()"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 44,48 ----
def testRead(self):
! # "Test BZ2File.read()"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 51,55 ****
def testReadChunk10(self):
! "Test BZ2File.read() in chunks of 10 bytes"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 51,55 ----
def testReadChunk10(self):
! # "Test BZ2File.read() in chunks of 10 bytes"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 64,68 ****
def testRead100(self):
! "Test BZ2File.read(100)"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 64,68 ----
def testRead100(self):
! # "Test BZ2File.read(100)"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 71,75 ****
def testReadLine(self):
! "Test BZ2File.readline()"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 71,75 ----
def testReadLine(self):
! # "Test BZ2File.readline()"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 80,84 ****
def testReadLines(self):
! "Test BZ2File.readlines()"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 80,84 ----
def testReadLines(self):
! # "Test BZ2File.readlines()"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 88,92 ****
def testIterator(self):
! "Test iter(BZ2File)"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 88,92 ----
def testIterator(self):
! # "Test iter(BZ2File)"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 96,100 ****
def testXReadLines(self):
! "Test BZ2File.xreadlines()"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 96,100 ----
def testXReadLines(self):
! # "Test BZ2File.xreadlines()"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 104,108 ****
def testUniversalNewlinesLF(self):
! "Test BZ2File.read() with universal newlines (\\n)"
self.createTempFile()
bz2f = BZ2File(self.filename, "rU")
--- 104,108 ----
def testUniversalNewlinesLF(self):
! # "Test BZ2File.read() with universal newlines (\\n)"
self.createTempFile()
bz2f = BZ2File(self.filename, "rU")
***************
*** 112,116 ****
def testUniversalNewlinesCRLF(self):
! "Test BZ2File.read() with universal newlines (\\r\\n)"
self.createTempFile(crlf=1)
bz2f = BZ2File(self.filename, "rU")
--- 112,116 ----
def testUniversalNewlinesCRLF(self):
! # "Test BZ2File.read() with universal newlines (\\r\\n)"
self.createTempFile(crlf=1)
bz2f = BZ2File(self.filename, "rU")
***************
*** 120,124 ****
def testWrite(self):
! "Test BZ2File.write()"
bz2f = BZ2File(self.filename, "w")
bz2f.write(self.TEXT)
--- 120,124 ----
def testWrite(self):
! # "Test BZ2File.write()"
bz2f = BZ2File(self.filename, "w")
bz2f.write(self.TEXT)
***************
*** 129,133 ****
def testWriteChunks10(self):
! "Test BZ2File.write() with chunks of 10 bytes"
bz2f = BZ2File(self.filename, "w")
n = 0
--- 129,133 ----
def testWriteChunks10(self):
! # "Test BZ2File.write() with chunks of 10 bytes"
bz2f = BZ2File(self.filename, "w")
n = 0
***************
*** 144,148 ****
def testWriteLines(self):
! "Test BZ2File.writelines()"
bz2f = BZ2File(self.filename, "w")
sio = StringIO(self.TEXT)
--- 144,148 ----
def testWriteLines(self):
! # "Test BZ2File.writelines()"
bz2f = BZ2File(self.filename, "w")
sio = StringIO(self.TEXT)
***************
*** 154,158 ****
def testSeekForward(self):
! "Test BZ2File.seek(150, 0)"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 154,158 ----
def testSeekForward(self):
! # "Test BZ2File.seek(150, 0)"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 161,165 ****
def testSeekBackwards(self):
! "Test BZ2File.seek(-150, 1)"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 161,165 ----
def testSeekBackwards(self):
! # "Test BZ2File.seek(-150, 1)"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 169,173 ****
def testSeekBackwardsFromEnd(self):
! "Test BZ2File.seek(-150, 2)"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 169,173 ----
def testSeekBackwardsFromEnd(self):
! # "Test BZ2File.seek(-150, 2)"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 176,180 ****
def testSeekPostEnd(self):
! "Test BZ2File.seek(150000)"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 176,180 ----
def testSeekPostEnd(self):
! # "Test BZ2File.seek(150000)"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 184,188 ****
def testSeekPostEndTwice(self):
! "Test BZ2File.seek(150000) twice"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 184,188 ----
def testSeekPostEndTwice(self):
! # "Test BZ2File.seek(150000) twice"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 193,197 ****
def testSeekPreStart(self):
! "Test BZ2File.seek(-150, 0)"
self.createTempFile()
bz2f = BZ2File(self.filename)
--- 193,197 ----
def testSeekPreStart(self):
! # "Test BZ2File.seek(-150, 0)"
self.createTempFile()
bz2f = BZ2File(self.filename)
***************
*** 202,206 ****
class BZ2CompressorTest(BaseTest):
def testCompress(self):
! "Test BZ2Compressor.compress()/flush()"
bz2c = BZ2Compressor()
data = bz2c.compress(self.TEXT)
--- 202,206 ----
class BZ2CompressorTest(BaseTest):
def testCompress(self):
! # "Test BZ2Compressor.compress()/flush()"
bz2c = BZ2Compressor()
data = bz2c.compress(self.TEXT)
***************
*** 209,213 ****
def testCompressChunks10(self):
! "Test BZ2Compressor.compress()/flush() with chunks of 10 bytes"
bz2c = BZ2Compressor()
n = 0
--- 209,213 ----
def testCompressChunks10(self):
! # "Test BZ2Compressor.compress()/flush() with chunks of 10 bytes"
bz2c = BZ2Compressor()
n = 0
***************
*** 224,228 ****
class BZ2DecompressorTest(BaseTest):
def testDecompress(self):
! "Test BZ2Decompressor.decompress()"
bz2d = BZ2Decompressor()
text = bz2d.decompress(self.DATA)
--- 224,228 ----
class BZ2DecompressorTest(BaseTest):
def testDecompress(self):
! # "Test BZ2Decompressor.decompress()"
bz2d = BZ2Decompressor()
text = bz2d.decompress(self.DATA)
***************
*** 230,234 ****
def testDecompressChunks10(self):
! "Test BZ2Decompressor.decompress() with chunks of 10 bytes"
bz2d = BZ2Decompressor()
text = ''
--- 230,234 ----
def testDecompressChunks10(self):
! # "Test BZ2Decompressor.decompress() with chunks of 10 bytes"
bz2d = BZ2Decompressor()
text = ''
***************
*** 243,247 ****
def testDecompressUnusedData(self):
! "Test BZ2Decompressor.decompress() with unused data"
bz2d = BZ2Decompressor()
unused_data = "this is unused data"
--- 243,247 ----
def testDecompressUnusedData(self):
! # "Test BZ2Decompressor.decompress() with unused data"
bz2d = BZ2Decompressor()
unused_data = "this is unused data"
***************
*** 251,255 ****
def testEOFError(self):
! "Calling BZ2Decompressor.decompress() after EOS must raise EOFError"
bz2d = BZ2Decompressor()
text = bz2d.decompress(self.DATA)
--- 251,255 ----
def testEOFError(self):
! # "Calling BZ2Decompressor.decompress() after EOS must raise EOFError"
bz2d = BZ2Decompressor()
text = bz2d.decompress(self.DATA)
***************
*** 261,280 ****
def testCompress(self):
! "Test compress() function"
data = compress(self.TEXT)
self.assertEqual(self.decompress(data), self.TEXT)
def testDecompress(self):
! "Test decompress() function"
text = decompress(self.DATA)
self.assertEqual(text, self.TEXT)
def testDecompressEmpty(self):
! "Test decompress() function with empty string"
text = decompress("")
self.assertEqual(text, "")
def testDecompressIncomplete(self):
! "Test decompress() function with incomplete data"
self.assertRaises(ValueError, decompress, self.DATA[:-10])
--- 261,280 ----
def testCompress(self):
! # "Test compress() function"
data = compress(self.TEXT)
self.assertEqual(self.decompress(data), self.TEXT)
def testDecompress(self):
! # "Test decompress() function"
text = decompress(self.DATA)
self.assertEqual(text, self.TEXT)
def testDecompressEmpty(self):
! # "Test decompress() function with empty string"
text = decompress("")
self.assertEqual(text, "")
def testDecompressIncomplete(self):
! # "Test decompress() function with incomplete data"
self.assertRaises(ValueError, decompress, self.DATA[:-10])
- Previous message: [Python-checkins] python/dist/src/Lib/test test_bz2.py,1.2,1.3
- Next message: [Python-checkins] python/dist/src/Lib/test test_b1.py,1.56,1.57 test_bz2.py,1.4,1.5 test_codeccallbacks.py,1.2,1.3 test_pep277.py,1.4,1.5 test_sets.py,1.14,1.15 test_support.py,1.44,1.45 test_trace.py,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]