summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Consistently use test_support.foo everywhere.Walter Dörwald2003-05-011-15/+5
| | | | | | Remove the last use of veris(). Remove now useless imports and functions.
* Patch #727805: Remove extra line ending from CGI responses.Martin v. Löwis2003-05-012-3/+4
|
* Delete comment my last checkin rendered obsolete.Michael W. Hudson2003-04-301-2/+0
| | | | | I should also not that my last checkin did stuff that made failures give more helpful information.
* Change from a threading.Condition object to a threading.Event object forBrett Cannon2003-04-301-6/+3
| | | | | | | signalling when the TCP server is done. Should hopefully solve hanging issues for Solaris 8 & 9. Solves the apparent hanging issue with OS X. Closes patch #729988 .
* Make time.sleep calls go to 0 for common testing.Brett Cannon2003-04-302-11/+19
|
* Flesh out test_support docs.Brett Cannon2003-04-301-3/+19
|
* improved CRLF regex for previous fixPiers Lauder2003-04-291-1/+1
|
* added code to canonicalise line endings in data sent via "append" - fix for ↵Piers Lauder2003-04-291-2/+3
| | | | bug report 723962
* Allow "@" in unquoted attribute values.Fred Drake2003-04-292-1/+10
| | | | | Added test that checks for characters allowed in the query part of URLs. Backport candidate.
* Port test_richcmp.py to PyUnit. From SF patch #662807 which additionalWalter Dörwald2003-04-292-366/+276
| | | | tests and comments.
* Use the new htmlentitydefs.codepoint2name for test_xmlcharnamereplace()Walter Dörwald2003-04-291-7/+1
|
* Add doctest for example in the library reference.Raymond Hettinger2003-04-291-0/+40
|
* Extract the errno value to use from the errno module if possible.Fred Drake2003-04-291-1/+6
|
* Regain throughput lost with the _socketobject wrapper. TheSkip Montanaro2003-04-291-3/+9
| | | | | throughput-sensitive methods are grabbed from the underlying _socket.socket object. Closes SF patch 729293.
* Use Tim's suggestion to fixMichael W. Hudson2003-04-291-14/+51
| | | | | | | | | [ 708901 ] Lineno calculation sometimes broken A one line patch to compile.c and a rather-more-than-one-line patch to test_dis. Hey ho. Possibly a backport candidate -- tho' lnotab is less used in 2.2...
* Armin Rigo's fix & test forMichael W. Hudson2003-04-291-0/+21
| | | | | | [ 729622 ] line tracing hook errors with massaging from me to integrate test into test suite.
* Applying patch #728656, by logistix, fixing opening of nonexistentGustavo Niemeyer2003-04-291-0/+5
| | | | bz2 files. Also, included a testcase for this problem.
* Added tests for urlretrieve. Also made sure urlopen tests cleaned up ↵Brett Cannon2003-04-291-8/+48
| | | | properly after themselves.
* Raise a ValueError when there is data that was not covered in the format ↵Brett Cannon2003-04-282-0/+7
| | | | string. Done to match behavior of pre-existing C-based strptime implementations.
* SF bug 728097: tmpnam problems on windows 2.3b, breaks test.test_os.Tim Peters2003-04-281-1/+22
| | | | | | | | | tmpnam() appears essentially useless on Windows, and it finally broke the test for Irmen de Jong. Read the long new comment in test_tmpnam() for details. Since the MS implementation is insane, it might be good if we supplied a different implementation. Bugfix candidate.
* Make tests clean up after themselves better. This means:Brett Cannon2003-04-271-2/+18
| | | | | | | | * call tearDown when Setup is called * shutil.rmtree the root of the created directory instead of just the leaf directory * set the LANGUAGE environment variable to what it was originally and not assume 'en'.
* Fix for part of the problem mentioned in #725149 by Greg Chapman.Gustavo Niemeyer2003-04-271-0/+7
| | | | | | | | | | | | | | | | | | | This problem is related to a wrong behavior from mark_save/restore(), which don't restore the mark_stack_base before restoring the marks. Greg's suggestion was to change the asserts, which happen to be the only recursive ops that can continue the loop, but the problem would happen to any operation with the same behavior. So, rather than hardcoding this into asserts, I have changed mark_save/restore() to always restore the stackbase before restoring the marks. Both solutions should fix these two cases, presented by Greg: >>> re.match('(a)(?:(?=(b)*)c)*', 'abb').groups() ('b', None) >>> re.match('(a)((?!(b)*))*', 'abb').groups() ('b', None, None) The rest of the bug and patch in #725149 must be discussed further.
* Applied patch #725106, by Greg Chapman, fixing capturing groupsGustavo Niemeyer2003-04-271-0/+19
| | | | | | | | | | | | | | | | | | | | within repeats of alternatives. The only change to the original patch was to convert the tests to the new test_re.py file. This patch fixes cases like: >>> re.match('((a)|b)*', 'abc').groups() ('b', '') Which is wrong (it's impossible to match the empty string), and incompatible with other regex systems, like the following examples show: % perl -e '"abc" =~ /^((a)|b)*/; print "$1 $2\n";' b a % echo "abc" | sed -r -e "s/^((a)|b)*/\1 \2|/" b a|c
* Factor out common boilerplate for test_supportRaymond Hettinger2003-04-274-24/+14
|
* Rewrote. As reported on c.l.py, when the test suite is run viaTim Peters2003-04-261-20/+30
| | | | | | | | | | | | | | "import test.autotest", temp_imp failed because the import lock was still held at the test's end (the test assumed it wouldn't be), and then a RuntimeError got raised at the end of the entire suite run because test_imp cleared the import lock as a side effect of trying to test that the import lock wasn't held (but a legitimate import is in progress, so the lock should be held, and the import machinery complained when it found that the lock was unexpectedly cleareed). Also removed the unittest scaffolding. It didn't buy anything here, and the test was raising regrtest's TestFailed instead of using the unittest failure-reporting mechanisms.
* Merge back from r23b1-branchGuido van Rossum2003-04-261-0/+2
|
* New feature: when saving a file, keep the eol convention of theGuido van Rossum2003-04-251-3/+11
| | | | | | original. New files are written using the eol convention of the platform, given by os.linesep. All files are read and written in binary mode.
* Update for release into PythonKurt B. Kaiser2003-04-252-2/+2
| | | | NEWS.txt idlever.py
* Update for 2.3b1Kurt B. Kaiser2003-04-254-15/+18
| | | | | Modified Files: NEWS.txt CREDITS.txt INSTALL.txt setup.cfg
* final bit of tests converted from test_sreSkip Montanaro2003-04-251-8/+25
|
* test_sre is dead! long live test_re!Skip Montanaro2003-04-251-116/+0
|
* deleted more tests which were either already in test_re or that I migratedSkip Montanaro2003-04-251-76/+0
| | | | in the last revison
* more tests converted from test_sreSkip Montanaro2003-04-251-14/+35
|
* Remove tests which were migrated to test_re.py. There are still more testsSkip Montanaro2003-04-251-262/+0
| | | | to migrate.
* Skip testing inet_ntop() an inet_pton() if they aren't defined.Guido van Rossum2003-04-251-0/+8
| | | | | This makes the test pass on Windows again (and on other platforms that don't have these).
* Fix the tests on Windows, by writing the test data file in binaryGuido van Rossum2003-04-251-1/+1
| | | | | | | | | mode. XXX I'm not convinced that this is the right solution -- arguably, on Windows, the _fileobject class should honor the mode argument and do newline translation. But it's never done that so I think there's no urgent need to fix this today.
* rework Sniffer api significantlySkip Montanaro2003-04-251-41/+26
|
* some sniffer testsSkip Montanaro2003-04-251-0/+34
|
* more tests from test_sreSkip Montanaro2003-04-251-2/+44
|
* Attempt to deal with some obvious errors in the code. These were allFred Drake2003-04-251-15/+14
| | | | | | | | | | due to using a single module-level namespace where multiple namespaces were used before. There *really* need to be tests for the sniffer stuff. This could have been avoided. Skip, please review, and add sniffer tests!
* New version from Vinaj, should solve the threading problems (hopefully).Guido van Rossum2003-04-252-7/+18
|
* copy a few tests from test_sreSkip Montanaro2003-04-251-0/+15
|
* Port test_bool.py to PyUnit. From SF patch #662807.Walter Dörwald2003-04-251-253/+328
|
* Complete rewrite of module. Only has tests using temporary files; net testsBrett Cannon2003-04-251-102/+376
| | | | | | should go in test_urllibnet.py . Still need to write tests for _urlopener usage and urlretrieve.
* New generator os.walk() does a bit more than os.path.walk() does, andTim Peters2003-04-252-4/+165
| | | | | seems much easier to use. Code, docs, NEWS, and additions to test_os.py (testing this sucker is a bitch!).
* Patch by Jp Calderone:Guido van Rossum2003-04-252-0/+60
| | | | | | | | | - The socket module now provides the functions inet_pton and inet_ntop for converting between string and packed representation of IP addresses. See SF patch #658327. This still needs a bit of work in the doc area, because it is not available on all platforms (especially not on Windows).
* test_re is no longer neededGuido van Rossum2003-04-251-2/+0
|
* Fix test_limitations(). The match there is *expected* to raiseGuido van Rossum2003-04-251-1/+6
| | | | RuntimeError.
* [Patch #628208] Test the 'nil' extensionAndrew M. Kuchling2003-04-251-0/+8
|
* [Patch #628208] Add optional support for the 'nil' extensionAndrew M. Kuchling2003-04-251-8/+24
|