summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Added tests expected to be skipped on Mac OS X.Jack Jansen2001-12-021-0/+21
|
* Whitespace normalization.Tim Peters2001-12-011-1/+0
|
* Merged changes made on r22b2-branch between r22b2 and r22b2-mac (theJack Jansen2001-11-301-0/+1
| | | | changes from start of branch upto r22b2 were already merged, of course).
* Adding test for Unicode repr()-output.Marc-André Lemburg2001-11-281-0/+15
|
* __format(): Applied SF patch #482003 by Skip to fix multiline dictBarry Warsaw2001-11-281-0/+19
| | | | | | | | output. Patch includes additional test case test_basic_line_wrap(). This patch is a candidate for Python 2.1.2.
* test_formatdate(): Integrating Jack's 22b2 branch fix for Mac epoch:Barry Warsaw2001-11-271-3/+4
| | | | | | | | More changes to the formatdate epoch test: the Mac epoch is in localtime, so east of GMT it falls in 1903:-( Changed the test to obtain the epoch in both local time and GMT, and do the right thing in the comparisons. As a sanity measure also check that day/month is Jan 1.
* - Change all remaining assertions into verify() and vereq() calls.Guido van Rossum2001-11-241-14/+42
| | | | | | - Add tests for the recent fixes to copy_reg.py: __getstate__/__setstate__ and mixed inheritance from new+classic classes.
* Fix for bug #438164: %-formatting using Unicode objects.Marc-André Lemburg2001-11-201-4/+1
| | | | | This patch also does away with an incompatibility between Jython and CPython.
* Fix for bug #480188: printing unicode objectsMarc-André Lemburg2001-11-202-0/+26
|
* test_formatdate(): Remove the unnecessary ldate calculation.Barry Warsaw2001-11-191-3/+6
| | | | | test_formatdate_zoneoffsets() => test_formatdate_localtime(): Do the sign corrected calculation of the zone offset.
* test_formatdate(), test_formatdate_zoneoffsets(): Two changes. First,Barry Warsaw2001-11-191-17/+16
| | | | | | | | | | | use the correct way to test for epoch, by looking at the year component of gmtime(0). Add clause for Unix epoch and Mac epoch (Tim, what is Windows epoch?). Also, get rid of the strptime() test, it was way too problematic given that strptime() is missing on many platforms and issues with locales. Instead, simply test that formatdate() gets the numeric timezone calculation correct for the altzone and timezone.
* test_formatdate(): A test that has a mild hope of working on Mac,Barry Warsaw2001-11-181-1/+11
| | | | | which has a different epoch than *nix. Jack may need to twiddle the details.
* More simple test cases for mixed classic+new multiple inheritance.Tim Peters2001-11-141-0/+35
|
* Changing diapers reminded Guido that he wanted to allow for some measureTim Peters2001-11-141-8/+47
| | | | | | of multiple inheritance from a mix of new- and classic-style classes. This is his patch, plus a start at some test cases from me. Will check in more, plus a NEWS blurb, later tonight.
* Removed print that executes only on Unix boxes; that made it impossibleTim Peters2001-11-131-2/+2
| | | | to have single "expected output" file.
* CVS patch #477161: New "access" keyword for mmap, from Jay T Miller.Tim Peters2001-11-132-13/+138
| | | | | | | | | | This gives mmap() on Windows the ability to create read-only, write- through and copy-on-write mmaps. A new keyword argument is introduced because the mmap() signatures diverged between Windows and Unix, so while they (now) both support this functionality, there wasn't a way to spell it in a common way without introducing a new spelling gimmick. The old spellings are still accepted, so there isn't a backward- compatibility issue here.
* Don't munge __debug__ and leave it that way.Jeremy Hylton2001-11-131-0/+2
|
* Whitespace normalization.Tim Peters2001-11-133-5/+4
|
* A specific test for bug #481221, getaddrlist() failing on longBarry Warsaw2001-11-131-0/+8
| | | | addresses. Commented out because it still takes too long to run.
* Committing the second part of patch #480902, an improved test suiteBarry Warsaw2001-11-131-31/+66
| | | | | for dumbdbm.py, by Skip Montanaro. The first half of Skip's patch has been postponed until Py2.3 since it adds new features.
* Add tests for bug #478115, parsedate_tz() IndexError when a Date:Barry Warsaw2001-11-132-0/+11
| | | | field exists with an empty value.
* getnameinfo() appears to raise socket.error instead ofBarry Warsaw2001-11-091-1/+1
| | | | | socket.gaierror. :( This allows test_socket to pass on a RH6.1-ish Linux system.
* Fix SF buf #480096: Assign to __debug__ still allowedJeremy Hylton2001-11-091-1/+0
| | | | | | Easy enough to catch assignment in the compiler. The perverse user can still change the value of __debug__, but that may be the least he can do.
* Fix SF buf #480096: Assign to __debug__ still allowedJeremy Hylton2001-11-091-1/+13
| | | | | | Easy enough to catch assignment in the compiler. The perverse user can still change the value of __debug__, but that may be the least he can do.
* Fiddle with new test cases -- verify that we get a sensible errorJeremy Hylton2001-11-091-4/+7
| | | | | | | message for bad mode argument -- so that it doesn't fail on Windows. It's hack. We know that errno is set to 0 in this case on Windows, so check for that specifically.
* test_formatdate(): Dang. Typo.Barry Warsaw2001-11-091-1/+1
|
* test_formatdate(): Don't do the localtime test if we don't haveBarry Warsaw2001-11-091-10/+12
| | | | strptime() -- I'm too lazy to code it otherwise.
* test_formatdate(): A test for email.Utils.formatdate().Barry Warsaw2001-11-091-0/+16
|
* Fix SF buf #476953: Bad more for opening file gives bad msg.Jeremy Hylton2001-11-091-0/+11
| | | | | | If fopen() fails with EINVAL it means that the mode argument is invalid. Return the mode in the error message instead of the filename.
* Add a regression test for SF bug #478536: If a value cannot be weaklyFred Drake2001-11-061-1/+5
| | | | | referenced, WeakKeyDictionary.has_key() should return 0 instead of raising TypeError.
* A couple more test cases to ensure join() doesn't add an "extra" backslashTim Peters2001-11-051-0/+2
| | | | in the presence of empty-string arguments.
* SF bug 478425: Change in os.path.join (ntpath.py)Tim Peters2001-11-051-0/+8
| | | | | | ntpath.join('a', '') was producing 'a' instead of 'a\\' as in 2.1. Impossible to guess what was ever *intended*, but since split('a\\') produces ('a', ''), I think it's best if join('a', '') gives 'a\\' back.
* Add regression test for SF bug #476616 -- make sure copy of a derived classFred Drake2001-11-051-0/+4
| | | | does not share data with the original.
* Correct getnameinfo refcounting and tuple parsing. Fixes #476648.Martin v. Löwis2001-11-021-0/+14
|
* [Patch #477336] Add an extensive PyUnit based testsuite for the hmacAndrew M. Kuchling2001-11-021-1/+108
| | | | module
* [Patch #476612] Add test suite for PEP247 complianceAndrew M. Kuchling2001-11-021-0/+50
|
* Fix comment typoAndrew M. Kuchling2001-11-021-1/+1
|
* Huh. In an effort to be less thorough <wink>, seems I checked in a newTim Peters2001-10-311-1/+1
| | | | test that wouldn't even compile,
* Fix bad bug in structseq slicing (NULL pointers in result). Reported byTim Peters2001-10-303-5/+21
| | | | | | Jack Jansen on python-dev. Add simple test case. Move vereq() from test_descr to test_support (it's handy!).
* Whitespace normalization.Tim Peters2001-10-302-2/+2
|
* To cover a recent checkin, added a test to ensure dir(None) == dir(Ellipsis).Tim Peters2001-10-301-0/+4
|
* Just changed some continued-line indentation to read better, due toTim Peters2001-10-301-3/+3
| | | | the earlier s/dictionary/dict/ change.
* Fix SF bug #456386: test_commands regression failure (Andrew Dalke)Guido van Rossum2001-10-301-1/+1
| | | | | | | | | test_commands does not work on IRIX It assumes the output of "ls /bin/ls" is a line that starts with a '-'. On IRIX that file is a symbolic link, so the first character is an l. This causes test_getstatus to fail.
* Minimal test for __del__ hook.Guido van Rossum2001-10-301-0/+12
|
* Rename "dictionary" (type and constructor) to "dict".Tim Peters2001-10-293-47/+47
|
* SF bug #476138: tempfile behavior across platformsTim Peters2001-10-291-0/+10
| | | | | Ensure that a tempfile can be closed any number of times without error. This wasn't true on Windows.
* Add a test for the insertion of user-provided ADD_INFO records.Fred Drake2001-10-291-2/+12
|
* Use sendall() in the stream test instead of send().Guido van Rossum2001-10-291-1/+1
|
* Test sendall().Guido van Rossum2001-10-291-1/+1
|
* added finditer sanity checkFredrik Lundh2001-10-281-0/+11
|