summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Convert "__init__ should return None" from an exception to a warning.Raymond Hettinger2005-03-041-1/+7
|
* Only run extensive subprocess tests if -usubprocess to regrtest is ↵Peter Astrand2005-03-032-4/+7
| | | | specified. Fixes #1124637
* SF bug #1155938: Missing None check for __init__().Raymond Hettinger2005-03-031-0/+13
|
* Revert previous checkin on getargs 'L' code. Try to convert allMartin v. Löwis2005-03-032-23/+5
| | | | numbers in PyLong_AsLongLong, and update test suite accordingly.
* Patch #1117454: Remove code to special-case cookies without valuesMartin v. Löwis2005-03-031-0/+19
| | | | in LWPCookieJar.
* Patch #1117339: Add cookielib special name tests.Martin v. Löwis2005-03-031-3/+26
|
* Clear internal call error in 'L' format. Fixes #723201.Martin v. Löwis2005-03-031-1/+13
|
* Backport: FixMichael W. Hudson2005-02-171-0/+3
| | | | | | | | [ 1124295 ] Function's __name__ no longer accessible in restricted mode which I introduced with a bit of mindless copy-paste when making __name__ writable. You can't assign to __name__ in restricted mode, which I'm going to pretend was intentional :)
* fix decoding in _stringify to not depend on the default encodingFred Drake2005-02-111-0/+42
| | | | (closes SF bug #1115989)
* Fix typoAndrew M. Kuchling2005-02-101-1/+1
|
* forwardport of 2.3.5 fixes to copy.pyAlex Martelli2005-02-071-0/+101
|
* Backport checkin:Walter Dörwald2005-01-101-0/+30
| | | | Fix and test for SF bug #1098990: codec readline() splits lines apart.
* Backport patch #712317: In URLs such as http://www.example.com?query=spam,Johannes Gijsbers2005-01-091-28/+51
| | | | | | treat '?' as a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in <authority>. See bug #548176 for further discussion.
* [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵Andrew M. Kuchling2004-12-281-0/+10
| | | | to an uninitialized pointer: fixes the problem and adds a test case
* Backport checkin:Walter Dörwald2004-12-211-13/+80
| | | | | | | | | | | | | | | The changes to the stateful codecs in 2.4 resulted in StreamReader.readline() trying to return a complete line even if a size parameter was given (see http://www.python.org/sf/1076985). This leads to buffer overflows with long source lines under Windows if e.g. cp1252 is used as the source encoding. This patch reverts the behaviour of readline() to something that behaves more like Python 2.3: If a size parameter is given, read() is called only once. As a side effect of this, readline() now supports all types of linebreaks supported by unicode.splitlines(). Note that the tokenizer is still broken and it's possible to provoke segfaults (see http://www.python.org/sf/1089395).
* Back-ported: marshal.dumps() with the new optional argument 'version' justArmin Rigo2004-12-201-0/+5
| | | | immediately segfaults, due to a typo!
* Backport fix for bug #1083645 have test_imp be skipped if threading is notBrett Cannon2004-12-181-1/+5
| | | | available.
* Bug #1083645Raymond Hettinger2004-12-181-2/+12
| | | | * The decimal module wouldn't run on builds without threads.
* Backport checkin: Fix copy & paste error in comments.Walter Dörwald2004-12-141-2/+2
|
* Backport from trunk: use os.geteuid() for checking whether we are root,Johannes Gijsbers2004-12-121-1/+1
| | | | as suggested by Michael Hudson.
* Backport of fix for SF bug #1076467: don't run test_on_error as root, asJohannes Gijsbers2004-12-061-1/+2
| | | | the permission errors don't get provoked that way.
* Don't have test_mkalias_relative run if sys.prefix does not exist. Backport ofBrett Cannon2004-12-061-0/+2
| | | | fix for bug #1077302.
* Raise TypeError if bufsize argument is not an integer. Patch 1071755, ↵Peter Astrand2004-12-051-0/+11
| | | | slightly modified.
* Fix argument order in pure python version of nsmallest() and nlargest().Raymond Hettinger2004-11-291-2/+5
|
* SF bug #1071588 coercing decimal to int doesn't work between -1 and 1Raymond Hettinger2004-11-241-4/+4
|
* Have testLoadTkFailure() skip on cygwin since Tcl/Tk on cygwin renders to theBrett Cannon2004-11-241-1/+3
| | | | | | Windows GDI directly and thus does not need a DISPLAY environment variable. Thanks Jason Tishler.
* Bug #1071513: don't test on Cygwin, as chmod doesn't work reliably thereJohannes Gijsbers2004-11-231-1/+5
| | | | | | | (http://www.cygwin.com/faq/faq_3.html#SEC41). Also check whether onerror has actually been called so this test will fail on assertion instead of on trying to chmod a non-existent file.
* Add 'linux2' as one of the platforms that does not use the echo service as oneBrett Cannon2004-11-201-1/+2
| | | | of the test possiblities for testGetServBy().
* Remove tempfile after use in test_call_string.Peter Astrand2004-11-171-1/+2
| | | | In test_args_string, remove the tempfile before assertEqual.
* SF bug 1065388: calendar day/month name lookup too slowTim Peters2004-11-131-8/+6
| | | | | | __getitem__() methods: compute only the new spellings needed to satisfy the given indexing object. This is purely an optimization (it should have no effect on visible semantics).
* Patch #1050475: Fix various x86_64 build issuesMartin v. Löwis2004-11-131-0/+4
| | | | | | regrtest.py: skip rgbimg and imageop as they are not built on 64-bit systems. _tkinter.c: replace %.8x with %p for printing pointers. setup.py: add lib64 into the library directories.
* Add options to regrtest.py to make it possible to specify where to putWalter Dörwald2004-11-121-8/+18
| | | | the coverage files when -T is used.
* Use os.chdir/os.getcwd instead of os.path.realpath, to support Tru64Peter Astrand2004-11-121-1/+6
| | | | TEMP dirs with {memb} strings. Fixes #1063571.
* On second thought: "Errors should never pass silently", so barf when aJust van Rossum2004-11-121-7/+10
| | | | string contains control chars that are illegal for XML
* testing control chars and non-dict root objectsJust van Rossum2004-11-121-0/+16
|
* SF patch #1062279: deque pickling problemsRaymond Hettinger2004-11-091-4/+36
| | | | | | | (Contributed by Dima Dorfman.) * Support pickling of dictionaries in instances of deque subclasses. * Support pickling of recursive deques.
* SF 1062353: set pickling problemsRaymond Hettinger2004-11-091-3/+9
| | | | Support automatic pickling of dictionaries in instance of set subclasses.
* test_doctest.py test_pdb_set_trace_nested(): A new test from Jim FultonTim Peters2004-11-081-3/+90
| | | | | | | | | showing that doctest's pdb.set_trace() support was dramatically broken. doctest.py _OutputRedirectingPdb.trace_dispatch(): Return a local trace function instead of (implicitly) None. Else interaction with pdb was bizarre, noticing only 'call' events. Amazingly, the existing set_trace() tests didn't care.
* test for fixedness of bug #1057835.Michael W. Hudson2004-11-081-0/+2
| | | | (thanks to Raymond for the prod).
* Stop printing listdir bytestring output, as the precise list of stringsMartin v. Löwis2004-11-072-3/+2
| | | | returned depends on the filesystem encoding.
* Try a different filename if the Latin-1 file name cannotMartin v. Löwis2004-11-071-0/+17
| | | | be represented in the file system. Fixes #989338.
* Whitespace normalization.Tim Peters2004-11-071-1/+1
|
* Essentially SF patch 1061679: add missing __all__ to pickletools.py.Tim Peters2004-11-061-0/+1
| | | | Harmless.
* Fix bug 1052242. Also includes rewrite of test case using unittest andSkip Montanaro2004-11-041-52/+86
| | | | avoiding use of popen.
* Maintain peepholer's cumlc invariant by updating the running totalRaymond Hettinger2004-11-021-3/+5
| | | | | | everytime a LOAD_CONSTANT is encountered, created, or overwritten. Added two tests to cover cases affected by the patch.
* * Bumped up the sleep() delay to four seconds so this test will runRaymond Hettinger2004-11-011-6/+9
| | | | | | reliably on WinME with FAT32. * Native speaker rewrite of the comment block. * Removed unnecessary backslashes from the multi-line function defintions.
* Add error checks for the bz2, cStringIO and operator modules.Walter Dörwald2004-11-013-0/+108
| | | | Add function names to various PyArg_ParseTuple calls in bz2module.c.
* Bug #1057993: Use sleep() always instead of os.utime() possibly brokenHye-Shik Chang2004-11-011-9/+5
| | | | in some platforms.
* SF patch #1056967, changes the semantics of Template.safe_substitute() to notBarry Warsaw2004-11-011-10/+9
| | | | raise a ValueError for dangling delimiters (the delimiter itself is returned).
* test_on_error(): Rewrite so it works on WinXP too. Unsure about 95/98/ME.Tim Peters2004-11-011-7/+13
|