summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Added errors argument to TarFile class that allows the user toLars Gustäbel2007-05-272-65/+181
| | | | | | | | | | | | | | | | | | | | specify an error handling scheme for character conversion. Additional scheme "utf-8" in read mode. Unicode input filenames are now supported by design. The values of the pax_headers dictionary are now limited to unicode objects. Fixed: The prefix field is no longer used in PAX_FORMAT (in conformance with POSIX). Fixed: In read mode use a possible pax header size field. Fixed: Strip trailing slashes from pax header name values. Fixed: Give values in user-specified pax_headers precedence when writing. Added unicode tests. Added pax/regtype4 member to testtar.tar all possible number fields in a pax header. Added two chapters to the documentation about the different formats tarfile.py supports and how unicode issues are handled.
* Applied patch 1669481, slightly modified: Support close_fds on Win32Peter Astrand2007-05-261-0/+8
|
* Remove direct call's to file's constructor and replace them with calls toBrett Cannon2007-05-251-1/+1
| | | | open() as ths is considered best practice.
* Get test passing again by commenting out the reference to the test class.Neal Norwitz2007-05-251-1/+1
|
* Commenting out the tests until find out who can test them inFacundo Batista2007-05-251-61/+69
| | | | one of the problematic enviroments.
* Fixing stupid error, and introducing a sleep, to see if theFacundo Batista2007-05-251-1/+1
| | | | other thread is awakened and finish sending data.
* Trying to make the tests work in Windows and Solaris, everywhereFacundo Batista2007-05-251-11/+13
| | | | else just works
* Let's see if reading exactly what is written allow this liveFacundo Batista2007-05-241-0/+1
| | | | | test to pass (now I know why there were so few tests in ftp, http, etc, :( ).
* Removed the .recv() in the test, is not necessary, and wasFacundo Batista2007-05-241-1/+0
| | | | | causing problems that didn't have anything to do with was actually being tested...
* Added an optional timeout parameter to urllib.ftpwrapper, with testsFacundo Batista2007-05-241-1/+66
| | | | | | (for this and a basic one, because there weren't any). Changed also NEWS, but didn't find documentation for this function, assumed it wasn't public...
* Patch #1686487: you can now pass any mapping after '**' in function calls.Georg Brandl2007-05-212-6/+16
|
* Added timeout support to HTTPSConnection, through theFacundo Batista2007-05-211-1/+9
| | | | | socket.create_connection function. Also added a small test for this, and updated NEWS file.
* Allow all alphanumeric and underscores in type and field names.Raymond Hettinger2007-05-211-0/+3
|
* Cause posixfile to raise a DeprecationWarning. Documented as deprecated sinceBrett Cannon2007-05-201-65/+68
| | | | Ptyhon 1.5.
* Move imgfile import to the global namespace to trigger an import error ASAP toBrett Cannon2007-05-201-4/+1
| | | | prevent creation of a test file.
* Remove the macfs module. This led to the deprecation of macostools.touched();Brett Cannon2007-05-203-84/+6
| | | | | it completely relied on macfs and is a no-op on OS X according to code comments.
* Remove the rgbimg module. It has been deprecated since Python 2.5.Brett Cannon2007-05-203-100/+8
|
* Improvements to NamedTuple's implementation, tests, and documentationRaymond Hettinger2007-05-191-1/+2
|
* Backport PEP 3110's new 'except' syntax to 2.6.Collin Winter2007-05-181-2/+2
|
* Verify neither dumps or loads overflow the stack and segfault.Neal Norwitz2007-05-181-1/+21
|
* Remove the gopherlib module. It has been raising a DeprecationWarning sinceBrett Cannon2007-05-163-26/+0
| | | | | | | Python 2.5. Also remove gopher support from urllib/urllib2. As both imported gopherlib the usage of the support would have raised a DeprecationWarning.
* Fix bug in marshal where bad data would cause a segfault due toNeal Norwitz2007-05-161-0/+4
| | | | | | lack of an infinite recursion check. Contributed by Damien Miller at Google.
* Better tests for posixpath.commonprefixRaymond Hettinger2007-05-111-0/+10
|
* Deprecate os.popen* and popen2 module in favor of the subprocess module.Neal Norwitz2007-05-114-14/+25
|
* Don't ever report a failure when the sum of the reference count differencesNeal Norwitz2007-05-111-2/+3
| | | | | | | are zero. This should help reduce the false positives. The message about references leaking is maintained to provide as much info as possible rather than simply suppressing the message at the source.
* Fix a bug in test.test_support.open_urlresource().Collin Winter2007-05-091-1/+1
| | | | | | | | | If the call to requires() doesn't precede the filesystem check, we get the following situation: 1. ./python Lib/test/regrtest.py test_foo # test needs urlfetch, not enabled, so skipped 2. ./python Lib/test/regrtest.py -u urlfetch test_foo # test runs 3. ./python Lib/test/regrtest.py test_foo # test runs (!) By moving the call to requires() *before* the filesystem check, the fact that fetched files are cached on the local disk becomes an implementation detail, rather than a semantics-changing point of note.
* Deprecate BaseException.message as per PEP 352.Brett Cannon2007-05-053-45/+91
|
* Fix those parts in the testsuite that assumed that sys.maxint would cause ↵Kristján Valur Jónsson2007-05-035-12/+21
| | | | overflow on x64. Now the testsuite is well behaved on that platform.
* Fix for #1303614 and #1174712:Armin Rigo2007-05-023-34/+78
| | | | | | | - __dict__ descriptor abuse for subclasses of built-in types - subclassing from both ModuleType and another built-in types Thanks zseil for the patch.
* This gets the test working on Solaris. It seems a little hokey to me,Neal Norwitz2007-04-271-0/+19
| | | | but the test passed on Linux and Solaris, hopefully other platforms too.
* The locale "En" appears not to be valid on windows underi VisualStudio.2005. ↵Kristján Valur Jónsson2007-04-261-1/+1
| | | | Added "English" to the test_locale.py to make the testsuite pass for that build
* Fix an issue related to the unittest conversion.Collin Winter2007-04-251-0/+6
|
* Convert test_ossaudiodev to use unittest.Collin Winter2007-04-251-120/+125
|
* Import and raise statement cleanup.Collin Winter2007-04-251-17/+9
|
* Change test_support.have_unicode to use True/False instead of 1/0.Collin Winter2007-04-251-2/+2
|
* Remove functionality from test_datetime.test_main() that does reference ↵Collin Winter2007-04-251-20/+1
| | | | count checking; 'regrtest.py -R' is the way to do this kind of testing.
* Standardize on test.test_support.run_unittest() (as opposed to a mix of ↵Collin Winter2007-04-2528-173/+74
| | | | run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-2528-360/+359
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Remove code that hasn't been called in years.Collin Winter2007-04-241-34/+0
|
* Convert PyUnit -> unittest.Collin Winter2007-04-241-11/+10
|
* As specified in RFC 2616, 2xx code indicates that the client'sFacundo Batista2007-04-231-3/+11
| | | | | request was successfully received, understood, and accepted. Now in these cases no error is raised. Also fixed tests.
* Added tests for other methods of SSL object. Now we coverFacundo Batista2007-04-221-0/+15
| | | | | all the object methods. This is the final step to close the #451607 bug.
* Revert r53997 as perArmin Rigo2007-04-191-87/+61
| | | | | | | | | http://mail.python.org/pipermail/python-dev/2007-March/071796.html . I've kept a couple of still-valid extra tests in test_descr, but didn't bother to sort through the new comments and refactorings added in r53997 to see if some of them could be kept. If so, they could go in a follow-up check-in.
* Check the availability of the urlfetch resource earlier than before.Collin Winter2007-04-161-0/+2
|
* When __slots__ are set to a unicode string, make it work the same asNeal Norwitz2007-04-141-1/+17
| | | | setting a plain string, ie don't expand to single letter identifiers.
* Port r54805 from python25-maint branch:Barry Warsaw2007-04-131-0/+20
| | | | | | | | Add code to read from master_fd in the parent, breaking when we get an OSError (EIO can occur on Linux) or there's no more data to read. Without this, test_pty.py can hang on the waitpid() because the child is blocking on the stdout write. This will definitely happen on Mac OS X and could potentially happen on other platforms. See the comment for details.
* Fix utf-8-sig incremental decoder, which didn't recognise a BOM when theWalter Dörwald2007-04-121-0/+5
| | | | first chunk fed to the decoder started with a BOM, but was longer than 3 bytes.
* Patch #1695862: remove the cleanup code, now that Windows buildbots are greenŽiga Seilnacht2007-04-121-17/+0
| | | | again.
* SF 1193128: Let str.translate(None) be an identity transformationRaymond Hettinger2007-04-121-0/+3
|
* SF 1191699: Make slices picklableRaymond Hettinger2007-04-111-0/+8
|