Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Raise TypeError if bufsize argument is not an integer. Patch 1071755, ↵ | Peter Astrand | 2004-11-30 | 1 | -0/+11 |
| | | | | slightly modified. | ||||
* | Fix argument order in pure python version of nsmallest() and nlargest(). | Raymond Hettinger | 2004-11-29 | 1 | -2/+5 |
| | |||||
* | SF bug #1071588 coercing decimal to int doesn't work between -1 and 1 | Raymond Hettinger | 2004-11-24 | 1 | -4/+4 |
| | |||||
* | Have testLoadTkFailure() skip on cygwin since Tcl/Tk on cygwin renders to the | Brett Cannon | 2004-11-24 | 1 | -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 there | Johannes Gijsbers | 2004-11-23 | 1 | -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 one | Brett Cannon | 2004-11-20 | 1 | -1/+2 |
| | | | | of the test possiblities for testGetServBy(). | ||||
* | Remove tempfile after use in test_call_string. | Peter Astrand | 2004-11-17 | 1 | -1/+2 |
| | | | | In test_args_string, remove the tempfile before assertEqual. | ||||
* | SF bug 1065388: calendar day/month name lookup too slow | Tim Peters | 2004-11-13 | 1 | -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 issues | Martin v. Löwis | 2004-11-13 | 1 | -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 put | Walter Dörwald | 2004-11-12 | 1 | -8/+18 |
| | | | | the coverage files when -T is used. | ||||
* | Use os.chdir/os.getcwd instead of os.path.realpath, to support Tru64 | Peter Astrand | 2004-11-12 | 1 | -1/+6 |
| | | | | TEMP dirs with {memb} strings. Fixes #1063571. | ||||
* | On second thought: "Errors should never pass silently", so barf when a | Just van Rossum | 2004-11-12 | 1 | -7/+10 |
| | | | | string contains control chars that are illegal for XML | ||||
* | testing control chars and non-dict root objects | Just van Rossum | 2004-11-12 | 1 | -0/+16 |
| | |||||
* | SF patch #1062279: deque pickling problems | Raymond Hettinger | 2004-11-09 | 1 | -4/+36 |
| | | | | | | | (Contributed by Dima Dorfman.) * Support pickling of dictionaries in instances of deque subclasses. * Support pickling of recursive deques. | ||||
* | SF 1062353: set pickling problems | Raymond Hettinger | 2004-11-09 | 1 | -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 Fulton | Tim Peters | 2004-11-08 | 1 | -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. Hudson | 2004-11-08 | 1 | -0/+2 |
| | | | | (thanks to Raymond for the prod). | ||||
* | Stop printing listdir bytestring output, as the precise list of strings | Martin v. Löwis | 2004-11-07 | 2 | -3/+2 |
| | | | | returned depends on the filesystem encoding. | ||||
* | Try a different filename if the Latin-1 file name cannot | Martin v. Löwis | 2004-11-07 | 1 | -0/+17 |
| | | | | be represented in the file system. Fixes #989338. | ||||
* | Whitespace normalization. | Tim Peters | 2004-11-07 | 1 | -1/+1 |
| | |||||
* | Essentially SF patch 1061679: add missing __all__ to pickletools.py. | Tim Peters | 2004-11-06 | 1 | -0/+1 |
| | | | | Harmless. | ||||
* | Fix bug 1052242. Also includes rewrite of test case using unittest and | Skip Montanaro | 2004-11-04 | 1 | -52/+86 |
| | | | | avoiding use of popen. | ||||
* | Maintain peepholer's cumlc invariant by updating the running total | Raymond Hettinger | 2004-11-02 | 1 | -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 run | Raymond Hettinger | 2004-11-01 | 1 | -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örwald | 2004-11-01 | 3 | -0/+108 |
| | | | | Add function names to various PyArg_ParseTuple calls in bz2module.c. | ||||
* | Bug #1057993: Use sleep() always instead of os.utime() possibly broken | Hye-Shik Chang | 2004-11-01 | 1 | -9/+5 |
| | | | | in some platforms. | ||||
* | SF patch #1056967, changes the semantics of Template.safe_substitute() to not | Barry Warsaw | 2004-11-01 | 1 | -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 Peters | 2004-11-01 | 1 | -7/+13 |
| | |||||
* | Bug #1048941: shutil.rmtree error handling was always broken | Johannes Gijsbers | 2004-10-31 | 1 | -3/+28 |
| | | | | | Rewrite rmtree again, this time without os.walk(). Error handling had been broken since Python 2.3, and the os.walk() version inherited this. | ||||
* | SF 1055820: weakref callback vs gc vs threads | Tim Peters | 2004-10-30 | 1 | -0/+199 |
| | | | | | | | | In cyclic gc, clear weakrefs to unreachable objects before allowing any Python code (weakref callbacks or __del__ methods) to run. This is a critical bugfix, affecting all versions of Python since weakrefs were introduced. I'll backport to 2.3. | ||||
* | Wrote down the invariants of some common objects whose structure is | Armin Rigo | 2004-10-28 | 1 | -2/+11 |
| | | | | | | | | | | exposed in header files. Fixed a few comments in these headers. As we might have expected, writing down invariants systematically exposed a (minor) bug. In this case, function objects have a writeable func_code attribute, which could be set to code objects with the wrong number of free variables. Calling the resulting function segfaulted the interpreter. Added a corresponding test. | ||||
* | Trigger a few error cases in Modules/_codecsmodule.c. | Walter Dörwald | 2004-10-28 | 1 | -0/+14 |
| | |||||
* | Fix bug of implementation of algorithm for calculating the date from year, week | Brett Cannon | 2004-10-28 | 1 | -3/+18 |
| | | | | | | | | of the year, and day of the week. Was not taking into consideration properly the issue of when %U is used for the week of the year but the year starts on Monday. Closes bug #1045381 again. | ||||
* | Add a comment explains why we should modify mtime here. | Hye-Shik Chang | 2004-10-27 | 1 | -2/+4 |
| | |||||
* | Removed newly redundant embedded import. | Tim Peters | 2004-10-27 | 1 | -1/+0 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-10-27 | 2 | -5/+5 |
| | |||||
* | Paper over bug 1054615 by passing sane values to os.utime(). | Tim Peters | 2004-10-27 | 1 | -2/+5 |
| | | | | | | | | | | The underlying bug still exists, but also existed in 2.3.4: import.c's load_source_module() returns NULL if PyOS_GetLastModificationTime() returns -1, but PyOS_GetLastModificationTime() doesn't set any exception when it returns -1, and neither does load_source_module() when it gets back -1. This leads to "SystemError: NULL result without error in PyObject_Call" on an import that fails in this way. | ||||
* | Update optparse module and test suite to Optik 1.5a2. | Greg Ward | 2004-10-27 | 1 | -192/+214 |
| | |||||
* | - Added tests for the string load/dump function. | Just van Rossum | 2004-10-26 | 1 | -14/+113 |
| | | | | | | - Added a chunk of plist data as generated by Cocoa's NSDictionary and verify we output the same (including formatting) - Changed the "literal" plist code to match the raw test data | ||||
* | SF #737473: Show up-to-date source code in tracebacks always. | Hye-Shik Chang | 2004-10-26 | 1 | -0/+41 |
| | | | | | And add an optional argument 'filename' to linecache.checkcache() to enable checking caches per-file. | ||||
* | SF bug #1053819: Segfault in tuple_of_constants | Raymond Hettinger | 2004-10-26 | 1 | -0/+17 |
| | | | | | | | Peepholer could be fooled into misidentifying a tuple_of_constants. Added code to count consecutive occurrences of LOAD_CONST. Use the count to weed out the misidentified cases. Added a unittest. | ||||
* | SF bug #1054139: serious string hashing error in 2.4b1 | Raymond Hettinger | 2004-10-26 | 1 | -0/+9 |
| | | | | | _PyString_Resize() readied strings for mutation but did not invalidate the cached hash value. | ||||
* | Whitespace normalization. | Tim Peters | 2004-10-25 | 1 | -1/+1 |
| | |||||
* | SF bug #1048870: call arg of lambda not updating | Raymond Hettinger | 2004-10-24 | 1 | -0/+9 |
| | |||||
* | Removed test_close_fds, because it's too unreliable. We simply cannot | Peter Astrand | 2004-10-21 | 1 | -10/+0 |
| | | | | | know that the newly-started Python process only has 3 filedescriptors open. Fixes bug 1048808. | ||||
* | Add test case for bug #1017553 | Andrew M. Kuchling | 2004-10-20 | 1 | -0/+9 |
| | |||||
* | Add support for %U and %W to contribute to calculating the date when the year | Brett Cannon | 2004-10-18 | 1 | -0/+22 |
| | | | | | | and day of the week are specified. Closes bug #1045381. | ||||
* | SF #1048865: Fix a trivial typo that breaks StreamReader.readlines() | Hye-Shik Chang | 2004-10-17 | 1 | -1/+12 |
| | |||||
* | Fix and test weak referencing of itertools.tee objects. | Raymond Hettinger | 2004-10-17 | 1 | -0/+8 |
| | |||||
* | Invalid patterns to substitute and safe_substitute would crash since pattern | Neal Norwitz | 2004-10-17 | 1 | -0/+12 |
| | | | | is not a local variable. Add a test case. |