Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Skip the test if TESTFN_ENCODING is None. Fixes #699386. | Martin v. Löwis | 2003-03-08 | 1 | -19/+6 |
| | |||||
* | Don't quote the path to Python unless the path contains an embedded space. | Tim Peters | 2003-03-07 | 1 | -1/+4 |
| | | | | | | | | Quoting the path doesn't work on Win2K (cmd.exe) regardless, this is just a hack to let the test pass again on Win2K (so long as Python isn't installed in a path that does contain an embedded space). On Win2K it looks like we'd also have to add a second pair of double quotes, around the entire command line. | ||||
* | Whitespace normalization. | Tim Peters | 2003-03-07 | 3 | -4/+4 |
| | |||||
* | This test relied on significant trailing whitespace in a string literal. | Tim Peters | 2003-03-07 | 1 | -7/+12 |
| | | | | Evil. | ||||
* | Test_ioctl and test_tarfile are skipped on MacOS9. | Jack Jansen | 2003-03-07 | 1 | -0/+2 |
| | |||||
* | The filename fix of the previous checkin was complete bogus, the problem is ↵ | Jack Jansen | 2003-03-07 | 1 | -3/+3 |
| | | | | elsewhere. Retracting. | ||||
* | Two fixes to make this test pass on MacOS9: | Jack Jansen | 2003-03-07 | 1 | -4/+4 |
| | | | | | | | - the test was sloppy about filenames: "0-REGTYPE-TEXT" was used where the archive held "/0-REGTYPE-TEXT". - tarfile extracts all files in binary mode, but the test expected to be able to read and compare text files in text mode. Use universal text mode. | ||||
* | SF patch #693753: fix for bug 639806: default for dict.pop | Raymond Hettinger | 2003-03-06 | 2 | -1/+11 |
| | | | | (contributed by Michael Stone.) | ||||
* | Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize, | Martin v. Löwis | 2003-03-05 | 1 | -2/+1 |
| | | | | | and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case. | ||||
* | test_ioctl is an expected skip on Windows. | Tim Peters | 2003-03-04 | 1 | -0/+1 |
| | |||||
* | Fix bug | Michael W. Hudson | 2003-03-03 | 1 | -0/+31 |
| | | | | | | | | [ 555817 ] Flawed fcntl.ioctl implementation. with my patch that allows for an array to be mutated when passed as the buffer argument to ioctl() (details complicated by backwards compatibility considerations -- read the docs!). | ||||
* | MyComplex now works. | Guido van Rossum | 2003-03-02 | 1 | -1/+1 |
| | |||||
* | test_load_from_canned_string(): Created a DATA2 string to test a canned | Tim Peters | 2003-03-02 | 1 | -2/+66 |
| | | | | proto 2 pickle too. | ||||
* | TestOnlySetsInBinaryOps: Simplified the non-inplace tests by using | Tim Peters | 2003-03-02 | 1 | -44/+16 |
| | | | | | | assertRaises. Fixed a repeated subtle bug in the inplace tests by removing the possibilty that a self.fail() call could raise a TypeError that the test catches by mistake. | ||||
* | Typo repairs in new code. | Tim Peters | 2003-03-02 | 1 | -3/+7 |
| | |||||
* | SF bug 693121: Set == non-Set is a TypeError. | Tim Peters | 2003-03-02 | 1 | -12/+23 |
| | | | | | | | | | Allow mixed-type __eq__ and __ne__ for Set objects. This is messier than I'd like because Set *also* implements __cmp__. I know of one glitch now: cmp(s, t) returns 0 now when s and t are both Sets and s == t, despite that Set.__cmp__ unconditionally raises TypeError (and by intent). The rub is that __eq__ gets tried first, and the x.__eq__(y) True result convinces Python that cmp(x, y) is 0 without even calling Set.__cmp__. | ||||
* | The doctest was printing Sets, but that's unreliable because set | Tim Peters | 2003-03-01 | 1 | -6/+9 |
| | | | | | elements get displayed in undefined dict order. Use a Set subclass instead (which arranges to sort the elements for display). | ||||
* | Reindent the new code properly. | Guido van Rossum | 2003-03-01 | 1 | -22/+22 |
| | |||||
* | - New function sys.exc_clear() clears the current exception. This is | Guido van Rossum | 2003-03-01 | 1 | -0/+44 |
| | | | | | | rarely needed, but can sometimes be useful to release objects referenced by the traceback held in sys.exc_info()[2]. (SF patch #693195.) Thanks to Kevin Jacobs! | ||||
* | Fix SF bugs #692951 and 692988, test_timeout.py needs 'network' resource | Neal Norwitz | 2003-02-28 | 2 | -0/+12 |
| | | | | | require -u network to run test_timeout since it fails when not connected to a network. | ||||
* | Getting rid of macfs. | Jack Jansen | 2003-02-27 | 1 | -3/+3 |
| | |||||
* | simple test case for dis module | Skip Montanaro | 2003-02-27 | 1 | -0/+53 |
| | |||||
* | Get rid of many apply() calls. | Guido van Rossum | 2003-02-27 | 2 | -6/+3 |
| | |||||
* | Use floor division (// and __[r]floordiv__ in right-dispatch test. | Guido van Rossum | 2003-02-27 | 1 | -23/+23 |
| | |||||
* | Use floor division (//). | Guido van Rossum | 2003-02-27 | 1 | -3/+3 |
| | |||||
* | The macfs, macostools, and plistlib should not be expected to run | Fred Drake | 2003-02-26 | 1 | -0/+33 |
| | | | | | beyond Mac OS and Darwin. I'm not even sure they should be run on Darwin, but I'll let someone more knowledgable on that tell us. | ||||
* | Port test_ucn and test_unicodedata to PyUnit. Add a few tests for error | Walter Dörwald | 2003-02-26 | 4 | -266/+337 |
| | | | | | cases increasing coverage in unicodedata.c from 87% to 95% (when the normalization tests are run). From SF patch #662807. | ||||
* | Test suite for the plistlib module. | Jack Jansen | 2003-02-25 | 1 | -0/+59 |
| | |||||
* | sys.executable can contain spaces, cater for this when passing it to | Jack Jansen | 2003-02-24 | 2 | -3/+3 |
| | | | | os.popen(). Fixes #692222. | ||||
* | Fix from SF patch #633359 by Greg Chapman for SF bug #610299: | Guido van Rossum | 2003-02-24 | 1 | -0/+1 |
| | | | | | | | | | The problem is in sre_compile.py: the call to _compile_charset near the end of _compile_info forgets to pass in the flags, so that the info charset is not compiled with re.U. (The info charset is used when searching to find the first character at which a match could start; it is not generated for patterns beginning with a repeat like '\w{1}'.) | ||||
* | Get test to work on alpha | Neal Norwitz | 2003-02-23 | 1 | -1/+1 |
| | |||||
* | Fix SF bug #689659, 64-bit int and long hash keys incompatible | Neal Norwitz | 2003-02-23 | 1 | -0/+8 |
| | | | | | On a 64-bit machine, a dictionary could contain duplicate int/long keys if the value was > 2**32. | ||||
* | Expect to skip test_iconv_codecs on MacOSX. | Jack Jansen | 2003-02-23 | 1 | -0/+1 |
| | |||||
* | Fix SF bug #690081, test_posix fails when run in non-interactive mode | Neal Norwitz | 2003-02-23 | 1 | -1/+8 |
| | | | | | Don't bother testing os.getlogin() if we aren't running from a tty (terminal) It fails when run without a tty (e.g., when run from cron). | ||||
* | User requested changes to the itertools module. | Raymond Hettinger | 2003-02-23 | 1 | -11/+12 |
| | | | | | Subsumed times() into repeat(). Added cycle() and chain(). | ||||
* | Checking mac-specific stuff from the 2.3a2 branch in on the trunk. | Jack Jansen | 2003-02-21 | 1 | -0/+1 |
| | |||||
* | SF bug 690622: test_cpickle overflows stack on MacOS9. | Tim Peters | 2003-02-21 | 1 | -1/+5 |
| | | | | | | | | test_nonrecursive_deep(): Reduced nesting depth to 60. Not a bugfix candidate. 2.3 increased the number of stack frames needed to pickle a list (in order to get implement the "list batching" unpickling memory optimization new in 2.3). | ||||
* | Doubled TimeoutTestCase.fuzz, to slash the frequency of bogus failures | Tim Peters | 2003-02-21 | 1 | -1/+7 |
| | | | | on the boxes I use. | ||||
* | Port all string tests to PyUnit and share as much tests | Walter Dörwald | 2003-02-21 | 6 | -935/+921 |
| | | | | | | | between str, unicode, UserString and the string module as possible. This increases code coverage in stringobject.c from 83% to 86% and should help keep the string classes in sync in the future. From SF patch #662807 | ||||
* | SF bug #690083: test_random fails sometimes | Raymond Hettinger | 2003-02-21 | 1 | -1/+1 |
| | | | | | | time.sleep(1) sometimes delays for fractionally less than a second resulting in too short of an interval for C's time.time() function to create a distinct seed. | ||||
* | Reverted whitespace normalization on this file. I should really change | Tim Peters | 2003-02-19 | 1 | -9/+10 |
| | | | | | this thing so it doesn't rely on being unnormalized. (That's the editorial "I", if anyone's listening <wink>.) | ||||
* | Removed debugging print in test_tarfile. | Tim Peters | 2003-02-19 | 1 | -1/+0 |
| | | | | | In the Windows installer, continued the endless battle to copy over files with new one-shot extensions. | ||||
* | Whitespace normalization. | Tim Peters | 2003-02-19 | 22 | -90/+86 |
| | |||||
* | Use __reduce_ex__ in copy.py. The test_*copy_cant() tests are simpler again. | Guido van Rossum | 2003-02-19 | 1 | -8/+24 |
| | |||||
* | Three test cases for __reduce_ex__. This fails for cPickle, until Tim | Guido van Rossum | 2003-02-18 | 1 | -0/+52 |
| | | | | checks in his changes to support this in cPickle.c. | ||||
* | Introducing __reduce_ex__, which is called with a protocol number argument | Guido van Rossum | 2003-02-18 | 1 | -0/+1 |
| | | | | | if it exists in preference over __reduce__. Now Tim can go implement this in cPickle.c. | ||||
* | One doctest displaying a dict didn't sort it first. *Maybe* this fixes | Tim Peters | 2003-02-18 | 1 | -2/+2 |
| | | | | the AIX problem with this test. | ||||
* | Fix SF bug #688424, 64-bit test problems | Neal Norwitz | 2003-02-18 | 1 | -26/+71 |
| | |||||
* | Fix SF bug #688424, 64-bit test problems | Neal Norwitz | 2003-02-18 | 2 | -3/+8 |
| | |||||
* | SF patch #687683, Patches to logging (updates from Vinay) | Neal Norwitz | 2003-02-18 | 2 | -12/+14 |
| | | | | | | Mostly rename WARN -> WARNING Other misc tweaks Update tests (not in original patch) |