summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bz2.py
Commit message (Collapse)AuthorAgeFilesLines
* - Issue #3309: Fix bz2.BZFile itererator to release its internal lockGregory P. Smith2008-07-071-0/+11
| | | | | properly when raising an exception due to the bz2file being closed. Prevents a deadlock.
* Deprecate os.popen* and popen2 module in favor of the subprocess module.Neal Norwitz2007-05-111-8/+10
|
* Add an additional test: BZ2File write methods should raise IOErrorGeorg Brandl2006-08-141-0/+9
| | | | when file is read-only.
* Patch #1535500: fix segfault in BZ2File.writelines and make sure itGeorg Brandl2006-08-141-0/+2
| | | | raises the correct exceptions.
* Bug #1535182: really test the xreadlines() method of bz2 objects.Georg Brandl2006-08-061-1/+1
|
* Add new utility function, reap_children(), to test_support. This shouldNeal Norwitz2006-06-291-0/+1
| | | | | | | | | | be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell.
* testSeekBackwardsFromEnd(): Repair obvious syntax error.Tim Peters2005-08-261-1/+1
|
* Add list() around xreadlines()Georg Brandl2005-08-261-2/+2
|
* Fix BZ2File.(x)readlines() for files without a newline.Georg Brandl2005-08-211-1/+17
|
* Bug #1194181: bz2.BZ2File didn't handle mode 'U' correctly.Georg Brandl2005-06-031-0/+10
|
* Add error checks for the bz2, cStringIO and operator modules.Walter Dörwald2004-11-011-0/+11
| | | | Add function names to various PyArg_ParseTuple calls in bz2module.c.
* Patch #734231: Update RiscOS support. In particular, correctMartin v. Löwis2003-05-101-1/+1
| | | | riscospath.extsep, and use os.extsep throughout.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-7/+6
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Applying patch #728656, by logistix, fixing opening of nonexistentGustavo Niemeyer2003-04-291-0/+5
| | | | bz2 files. Also, included a testcase for this problem.
* Add test to ensure files (fds) don't leakNeal Norwitz2003-02-121-0/+6
|
* OS/2 EMX has no popen2.Popen3 even though bunzip2 is availableAndrew MacIntyre2002-12-311-1/+1
|
* This uses only one temp file at a time, so use test_support.TESTFN asTim Peters2002-11-141-2/+2
| | | | | the name instead of enduring nanny "security warnings" from tempfile.mktemp().
* I already forgot what I changed -- it wasn't important <wink>.Tim Peters2002-11-091-2/+0
|
* OK -- all tests pass on Windows now. The rest were due to 3 moreTim Peters2002-11-091-22/+5
| | | | binary-vs-text-mode screwups.
* More tests run on Windows now. Something is still wrong here, but noTim Peters2002-11-091-27/+34
| | | | idea what. Added liberal XXX explanations for the next guy.
* Many changes to get this to pass on Windows, and to make it easier toTim Peters2002-11-091-11/+45
| | | | | | | | figure out what the code was doing. The fixes were a combination of closing open files before deletion, opening files in binary mode, and plain skipping things that can't work on Windows (BaseTest.decompress uses a process gimmick that doesn't exist on Windows, and, even if it did, assumes a "bunzip2" executable is on PATH).
* Whitespace normalization.Tim Peters2002-11-091-260/+260
|
* Comment out the test docstrings so we can at least tell which tests areTim Peters2002-11-091-28/+28
| | | | failing.
* Whitespace normalization.Tim Peters2002-11-091-16/+16
|
* Open at least one binary file in binary mode. This allows a few of theTim Peters2002-11-091-1/+1
| | | | bz2 tests to pass on Windows; most are still failing.
* Patch implementing bz2 module.Gustavo Niemeyer2002-11-051-0/+290
* setup.py (PyBuildExt.detect_modules): Included bz2 module detection. * Modules/bz2module.c * Lib/test/test_bz2.py * Doc/lib/libbz2.tex Included files implementing, testing, and documenting bz2 module. * Doc/Makefile.deps * Doc/lib/lib.tex Include references to libbz2.tex. * Misc/NEWS (Library): Mention distutils' c++ linkage patch, and new bz2 module.