summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Skip the test if TESTFN_ENCODING is None. Fixes #699386.Martin v. Löwis2003-03-081-19/+6
|
* Don't quote the path to Python unless the path contains an embedded space.Tim Peters2003-03-071-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 Peters2003-03-073-4/+4
|
* This test relied on significant trailing whitespace in a string literal.Tim Peters2003-03-071-7/+12
| | | | Evil.
* Test_ioctl and test_tarfile are skipped on MacOS9.Jack Jansen2003-03-071-0/+2
|
* The filename fix of the previous checkin was complete bogus, the problem is ↵Jack Jansen2003-03-071-3/+3
| | | | elsewhere. Retracting.
* Two fixes to make this test pass on MacOS9:Jack Jansen2003-03-071-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.popRaymond Hettinger2003-03-062-1/+11
| | | | (contributed by Michael Stone.)
* Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,Martin v. Löwis2003-03-051-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 Peters2003-03-041-0/+1
|
* Fix bugMichael W. Hudson2003-03-031-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 Rossum2003-03-021-1/+1
|
* test_load_from_canned_string(): Created a DATA2 string to test a cannedTim Peters2003-03-021-2/+66
| | | | proto 2 pickle too.
* TestOnlySetsInBinaryOps: Simplified the non-inplace tests by usingTim Peters2003-03-021-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 Peters2003-03-021-3/+7
|
* SF bug 693121: Set == non-Set is a TypeError.Tim Peters2003-03-021-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 setTim Peters2003-03-011-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 Rossum2003-03-011-22/+22
|
* - New function sys.exc_clear() clears the current exception. This isGuido van Rossum2003-03-011-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' resourceNeal Norwitz2003-02-282-0/+12
| | | | | require -u network to run test_timeout since it fails when not connected to a network.
* Getting rid of macfs.Jack Jansen2003-02-271-3/+3
|
* simple test case for dis moduleSkip Montanaro2003-02-271-0/+53
|
* Get rid of many apply() calls.Guido van Rossum2003-02-272-6/+3
|
* Use floor division (// and __[r]floordiv__ in right-dispatch test.Guido van Rossum2003-02-271-23/+23
|
* Use floor division (//).Guido van Rossum2003-02-271-3/+3
|
* The macfs, macostools, and plistlib should not be expected to runFred Drake2003-02-261-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 errorWalter Dörwald2003-02-264-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 Jansen2003-02-251-0/+59
|
* sys.executable can contain spaces, cater for this when passing it toJack Jansen2003-02-242-3/+3
| | | | os.popen(). Fixes #692222.
* Fix from SF patch #633359 by Greg Chapman for SF bug #610299:Guido van Rossum2003-02-241-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 alphaNeal Norwitz2003-02-231-1/+1
|
* Fix SF bug #689659, 64-bit int and long hash keys incompatibleNeal Norwitz2003-02-231-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 Jansen2003-02-231-0/+1
|
* Fix SF bug #690081, test_posix fails when run in non-interactive modeNeal Norwitz2003-02-231-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 Hettinger2003-02-231-11/+12
| | | | | Subsumed times() into repeat(). Added cycle() and chain().
* Checking mac-specific stuff from the 2.3a2 branch in on the trunk.Jack Jansen2003-02-211-0/+1
|
* SF bug 690622: test_cpickle overflows stack on MacOS9.Tim Peters2003-02-211-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 failuresTim Peters2003-02-211-1/+7
| | | | on the boxes I use.
* Port all string tests to PyUnit and share as much testsWalter Dörwald2003-02-216-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 sometimesRaymond Hettinger2003-02-211-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 changeTim Peters2003-02-191-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 Peters2003-02-191-1/+0
| | | | | In the Windows installer, continued the endless battle to copy over files with new one-shot extensions.
* Whitespace normalization.Tim Peters2003-02-1922-90/+86
|
* Use __reduce_ex__ in copy.py. The test_*copy_cant() tests are simpler again.Guido van Rossum2003-02-191-8/+24
|
* Three test cases for __reduce_ex__. This fails for cPickle, until TimGuido van Rossum2003-02-181-0/+52
| | | | checks in his changes to support this in cPickle.c.
* Introducing __reduce_ex__, which is called with a protocol number argumentGuido van Rossum2003-02-181-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 fixesTim Peters2003-02-181-2/+2
| | | | the AIX problem with this test.
* Fix SF bug #688424, 64-bit test problemsNeal Norwitz2003-02-181-26/+71
|
* Fix SF bug #688424, 64-bit test problemsNeal Norwitz2003-02-182-3/+8
|
* SF patch #687683, Patches to logging (updates from Vinay)Neal Norwitz2003-02-182-12/+14
| | | | | | Mostly rename WARN -> WARNING Other misc tweaks Update tests (not in original patch)