summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* #6750: TextIOWrapped could duplicate output when several threads write to it.Amaury Forgeot d'Arc2009-08-291-0/+21
| | | | this affect text files opened with io.open(), and the print() function of py3k
* Issue #6054: Do not normalize stored pathnames.Lars Gustäbel2009-08-281-0/+70
| | | | | | No longer use tarfile.normpath() on pathnames. Store pathnames unchanged, i.e. do not remove "./", "../" and "//" occurrences. However, still convert absolute to relative paths.
* Issue #6794: Fix handling of NaNs in Decimal.compare_total andMark Dickinson2009-08-281-0/+16
| | | | Decimal.compare_total_mag.
* Issue 6654Kristján Valur Jónsson2009-08-271-1/+75
| | | | Allow the XML-RPC server to use the HTTP request path when dispatching. Added a MultiPathXMLRPCServer class that uses the feature, plus unit tests.
* issue 6275Kristján Valur Jónsson2009-08-271-0/+15
| | | | Add an "exc_value" attribute to the _AssertRaisesContext context manager in the unittest package. This allows further tests on the exception that was raised after the context manager exits.
* #6693: New functions in site.py to get user/global site packages paths.Tarek Ziadé2009-08-201-0/+60
|
* Add test of file.write(array) extracted from Jython.Frank Wierzbicki2009-08-161-0/+19
|
* Issue 6665: Fix fnmatch to properly match filenames with newlines in them.Gregory P. Smith2009-08-161-1/+8
|
* better col_offsets for "for" statements with tuple unpacking #6704Benjamin Peterson2009-08-151-1/+8
| | | | Patch from Frank Wierzbicki.
* #6707 fix a crash with dir() on an uninitialized moduleBenjamin Peterson2009-08-151-0/+1
|
* Expat could crash if given the wrong kind of input by never stopping itsBrett Cannon2009-08-131-1/+20
| | | | | | tokenizing step. Thanks to Ivan Krstić for the patch.
* Fix issue1628205: Socket file objects returned by socket.socket.makefile() nowGregory P. Smith2009-08-131-0/+72
| | | | | properly handles EINTR within the read, readline, write & flush methods. The socket.sendall() method now properly handles interrupted system calls.
* Issue #6629: Fix a data corruption issue in the new `io` package, which couldAntoine Pitrou2009-08-061-0/+20
| | | | | | | | occur when writing to a BufferedRandom object (e.g. a file opened in "rb+" or "wb+" mode) after having buffered a certain amount of data for reading. This bug was not present in the pure Python implementation. Yes, this is a serious issue.
* Issue 6637: defaultdict.copy() failed with an empty factory.Raymond Hettinger2009-08-041-0/+7
|
* Adding tests derived from the Jython project. These are primarily tests ofFrank Wierzbicki2009-08-021-0/+116
| | | | | | | 'single' statements with partial sentences (so they test things like "try:" in interactive mode). Others tests hit areas that previously failed in Jython. A couple still fail in Jython, mainly due to the difficulty of parsing partial sentences (but should be fixed by Jython 2.6).
* Issue #6595: Allow Decimal constructor to accept non-European decimalMark Dickinson2009-08-021-3/+9
| | | | | digits, as recommended by the specification. (Backport of r74279 from py3k.)
* #6511: ZipFile will now raise BadZipfile when opening an empty or tiny file,Amaury Forgeot d'Arc2009-07-281-0/+10
| | | | like it does for larger invalid files.
* "Fix" for the refleak report: the ABC classes are now in the _pyio moduleAmaury Forgeot d'Arc2009-07-281-2/+2
|
* Issue #6561: '\d' regular expression should not match characters ofMark Dickinson2009-07-281-0/+21
| | | | | category [No]; only those of category [Nd]. (Backport of r74237 from py3k.)
* Issue 6573: Fix set.union() for cases where self is in the argument chain.Raymond Hettinger2009-07-271-0/+4
|
* #6553: crash in cPickle.load(), when given a StringIO with incomplete data.Amaury Forgeot d'Arc2009-07-231-0/+5
| | | | Will backport to 2.6, 3.x already fixed a similar issue with issue4298.
* Backport of fix for issue 6542: make sureR. David Murray2009-07-221-1/+12
| | | | | test_os.TestInvalidFD.test_closerange does not close any valid file descriptors.
* Issue #6540: Fixed crash for bytearray.translate() with invalid parameters.Georg Brandl2009-07-221-0/+5
|
* the Slice in x[::] has to have step as None to help the interpreterBenjamin Peterson2009-07-201-1/+2
|
* http://bugs.python.org/issue6499Kristján Valur Jónsson2009-07-191-1/+5
| | | | zlib/gzip may not be present for all builds. Make xmlrpclib gracefully not supporg gzip encoding in this case
* split unittest.py into a packageBenjamin Peterson2009-07-194-23/+25
|
* Fix for issue5102, timeout value propages between redirects, proxy, digest andSenthil Kumaran2009-07-191-2/+6
| | | | auth handlers. Fixed tests to reflect the same.
* Issue #6431: Fix Fraction comparisons with unknown types, and withMark Dickinson2009-07-181-0/+126
| | | | float infinities and nans. Backport of r74078 from py3k.
* Issue #6415: Fixed warnings.warn sagfault on bad formatted string.Hirokazu Yamamoto2009-07-171-0/+13
|
* Issue 6433: multiprocessing.pool.map hangs on empty listJesse Noller2009-07-161-0/+6
|
* #5910: fix kqueue for calls with more than one event.Georg Brandl2009-07-161-0/+16
|
* methods' names pep8ificationEzio Melotti2009-07-151-127/+127
|
* Move TestRunner initialisation into unittest.TestProgram.runTests. Fixes ↵Michael Foord2009-07-141-9/+0
| | | | issue 6418.
* http://bugs.python.org/issue6267Kristján Valur Jónsson2009-07-121-4/+41
| | | | Add more tests for the xlmrpc.ServerProxy
* put downloaded test support files in Lib/test/data instead of the cwdBenjamin Peterson2009-07-111-5/+4
|
* #2622 Import errors in email.message, from a py2app standalone application.Amaury Forgeot d'Arc2009-07-111-2/+2
| | | | Patch by Mads Kiilerich, Reviewed by Barry Warsaw.
* Add basic tests for the return value of os.popen().close().Amaury Forgeot d'Arc2009-07-111-0/+7
| | | | According to #6358, python 3.0 has a different implementation that behaves differently.
* http://bugs.python.org/issue6460Kristján Valur Jónsson2009-07-111-2/+8
| | | | Need to be careful with thread switching when testing the xmlrpc server. The server thread may not have updated stats when the client thread tests them.
* more cleanups and if zlib -> skipUnless(zlib)Ezio Melotti2009-07-101-90/+94
|
* #6416: Fix compilation of the select module on Windows, as well as ↵Amaury Forgeot d'Arc2009-07-091-1/+1
| | | | | | | | test_subprocess: PIPE_BUF is not defined on Windows, and probably has no meaning there. Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
* Try to fix Solaris buildbot rmtree failure in test_getcwd_long_pathnamesR. David Murray2009-07-091-2/+1
| | | | | | | cleanup. If this fix works, it means that Solaris is unique among our platforms in what happens when shutil.rmtree is called on the current working directory (ie: it doesn't work on Solaris, but it does everywhere else).
* Temporarily ignore rmtree errors in test_getcwd_long_pathnames to seeR. David Murray2009-07-091-1/+2
| | | | if the test gives useful failure info on Solaris buildbot.
* Curdir needs to be in the path for the test to work on all buildbots.R. David Murray2009-07-091-0/+2
| | | | | (I copied this from another import test, but currently this will fail if TESTFN ends up in /tmp...see issue 2609).
* Specify umask in execute bit test to get consistent resultsR. David Murray2009-07-091-0/+2
| | | | and make sure we test resetting all three execute bits.
* Make test work with -O.R. David Murray2009-07-091-2/+8
|
* Conditionalize test cleanup code to eliminate traceback, which willR. David Murray2009-07-091-1/+1
| | | | hopefully reveal the real problem.
* Issue #1523: Remove deprecated overflow masking in struct module, andMark Dickinson2009-07-071-19/+1
| | | | make sure that out-of-range values consistently raise struct.error.
* Expand test coverage for struct.pack with native integer packing;Mark Dickinson2009-07-071-170/+107
| | | | reorganize the test_struct module to remove duplicated code and tests.
* Add skipping to struct test that only applies when overflow masking is in effectMark Dickinson2009-07-071-0/+2
|
* Issue 6070: when creating a compiled file, after copying the mode bits, onR. David Murray2009-07-071-0/+19
| | | | | posix zap the execute bit in case it was set on the .py file, since the compiled files are not directly executable on posix. Patch by Marco N.