summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* #14984: On POSIX, enforce permissions when reading default .netrc.R David Murray2013-09-181-3/+23
| | | | | | | | Initial patch by Bruno Piguet. This is implemented as if a useful .netrc file could exist without passwords, which is possible in the general case; but in fact our netrc implementation does not support it. Fixing that issue will be an enhancement.
* Remove setting hash seed to regrtest's random seed and re-execv()ing: this ↵Georg Brandl2012-02-201-5/+0
| | | | doesn't preserve Python flags and fails from a temp directory.
* Fix dbm_gnu test relying on set order.Georg Brandl2012-02-201-1/+1
|
* don't rely on the order of module clearingBenjamin Peterson2012-02-201-1/+1
|
* Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-2010-20/+180
| | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
* fix this to not depend on dictionary orderBenjamin Peterson2012-01-031-4/+4
|
* Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-0/+8
| | | | Patch by Andreas Stührk.
* Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed byCharles-François Natali2011-07-021-0/+24
| | | | the garbage collector while the Heap lock is held.
* fix regression in netrc comment handling (closes #12009)Benjamin Peterson2011-06-101-39/+92
|
* Issue #10801: Fix test_unicode_filenames() of test_zipfileVictor Stinner2011-06-101-1/+2
| | | | | | Just try to open files from the ZIP for reading, don't extract them to avoid UnicodeEncodeError if the filename is not encodable to the filesystem encoding (e.g. ASCII locale encoding).
* Issue #985064: Make plistlib more resilient to faulty input plists.Ned Deily2011-05-281-0/+26
| | | | Patch by Mher Movsisyan.
* Issue #9670: Increase the default stack size for secondary threads onNed Deily2011-05-281-0/+31
| | | | | | Mac OS X and FreeBSD to reduce the chances of a crash instead of a "maximum recursion depth" RuntimeError exception. (patch by Ronald Oussoren)
* Issue #12175: RawIOBase.readall() now returns None if read() returns None.Victor Stinner2011-05-251-2/+5
|
* Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError ifVictor Stinner2011-05-251-0/+2
| | | | the file is closed.
* Issue #12057: Add tests for the HZ encodingVictor Stinner2011-05-243-0/+33
|
* Issue #12100: Don't reset incremental encoders of CJK codecs at each call toVictor Stinner2011-05-241-0/+30
| | | | | their encode() method anymore, but continue to call the reset() method if the final argument is True.
* correctly lookup __dir__Benjamin Peterson2011-05-231-0/+1
|
* test_codecs now removes the temporay file (created by the test)Victor Stinner2011-05-231-7/+6
|
* Issue #10801: Remove a debug print() from test_zipfileVictor Stinner2011-05-221-1/+0
|
* Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymoreVictor Stinner2011-05-191-17/+0
| | | | to be able to unload the module.
* Ooops, add the missing file of the backport of commit 33543b4e0e5d from PythonVictor Stinner2011-05-181-0/+0
| | | | | 3.2 (#10801: In zipfile, support different encodings for the header and the filenames. Patch by MvL, test by Eli Bendersky.)
* Backport commit 33543b4e0e5d from Python 3.2: #10801: In zipfile, supportVictor Stinner2011-05-181-3/+26
| | | | | different encodings for the header and the filenames. Patch by MvL, test by Eli Bendersky.
* Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymoreVictor Stinner2011-05-161-1/+1
|
* Issue #12057: Convert CJK encoding testcase BLOB into multiple text filesVictor Stinner2011-05-1626-1024/+214
|
* Issue #11614: import __hello__ prints "Hello World!". Patch written by AndreasVictor Stinner2011-05-161-23/+29
| | | | Stührk.
* Issue #10756: atexit normalizes the exception before displaying it. Patch byVictor Stinner2011-05-151-0/+8
| | | | | | Andreas Stührk. Backport a fix already applied to Python 3.2+ (4a82be47a948 + 5060a92a8597).
* Fix copy-paste mistake in new zlib test.Nadeem Vawda2011-05-141-2/+4
|
* Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.Nadeem Vawda2011-05-141-0/+11
| | | | | Raise an OverflowError if the input data is too large, instead of silently truncating the input and returning an incorrect result.
* Issue #8650: Backport 64-bit safety fixes for compress() and decompress().Nadeem Vawda2011-05-141-0/+11
|
* Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tailNadeem Vawda2011-05-141-0/+9
| | | | attribute when called without a max_length argument.
* #7960: fix docstrings for captured_output and captured_stdout.Ezio Melotti2011-05-141-8/+8
|
* #5723: Improve json tests to be executed with and without accelerations.Ezio Melotti2011-05-141-2/+2
|
* Change import_fresh_module to work with packages.Ezio Melotti2011-05-141-10/+6
|
* Issue #12062: Fix a flushing bug when doing a certain type of I/O sequenceAntoine Pitrou2011-05-121-0/+26
| | | | | | on a file opened in read+write mode (namely: reading, seeking a bit forward, writing, then seeking before the previous write but still within buffered data, and writing again).
* Issue #12012: ssl.PROTOCOL_SSLv2 becomes optionalVictor Stinner2011-05-091-11/+15
| | | | | | | OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2 protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid. Optimize also ssl.get_protocol_name(): speed does matter!
* Some more tests were incorrectly marked as C specific.Ezio Melotti2011-05-091-12/+10
|
* Stop trying to use _xmlplus in the xml module. Closes #11164.Martin v. Löwis2011-05-092-65/+0
| | | | Patch by Arfrever Frehtes Taifersar Arahesis.
* #11910: Fix test_heapq to skip the C tests when _heapq is missing.Ezio Melotti2011-05-091-20/+27
|
* #11910: change import_fresh_module to return None when one of the "fresh" ↵Ezio Melotti2011-05-091-4/+8
| | | | modules can not be imported.
* put import_fresh_module in __all__Benjamin Peterson2011-05-081-0/+1
|
* MergeAntoine Pitrou2011-05-071-0/+8
|\
| * mergeGiampaolo Rodola'2011-05-071-0/+8
| |\
| | * #12002 - ftplib's abort() method raises TypeErrorGiampaolo Rodola'2011-05-071-0/+8
| | |
* | | Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by ↵Antoine Pitrou2011-05-071-0/+7
|/ / | | | | | | Kasun Herath.
* | #5421: add tests.Ezio Melotti2011-05-071-0/+30
| |
* | Fix potential resource leak in test_mmap.Nadeem Vawda2011-05-071-0/+1
| |
* | Issue #11277: Fix tests - crash will not trigger if the file is closed and ↵Nadeem Vawda2011-05-071-14/+12
| | | | | | | | reopened.
* | Issue #11277: Add tests for mmap crash when using large sparse files on OS X.Nadeem Vawda2011-05-071-26/+34
| | | | | | | | | | | | Also, reduce code duplication in LargeMmapTests. Original patch by Steffen Daode Nurpmeso.
* | #11999: sync based on comparing mtimes, not mtime to system clockR David Murray2011-05-071-13/+10
| |
* | Fix for issue 10684: Folders get deleted when trying to change case with ↵Ronald Oussoren2011-05-061-0/+18
| | | | | | | | shutil.move (case insensitive file systems only)