Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added errors argument to TarFile class that allows the user to | Lars Gustäbel | 2007-05-27 | 2 | -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 Win32 | Peter Astrand | 2007-05-26 | 1 | -0/+8 |
| | |||||
* | Remove direct call's to file's constructor and replace them with calls to | Brett Cannon | 2007-05-25 | 1 | -1/+1 |
| | | | | open() as ths is considered best practice. | ||||
* | Get test passing again by commenting out the reference to the test class. | Neal Norwitz | 2007-05-25 | 1 | -1/+1 |
| | |||||
* | Commenting out the tests until find out who can test them in | Facundo Batista | 2007-05-25 | 1 | -61/+69 |
| | | | | one of the problematic enviroments. | ||||
* | Fixing stupid error, and introducing a sleep, to see if the | Facundo Batista | 2007-05-25 | 1 | -1/+1 |
| | | | | other thread is awakened and finish sending data. | ||||
* | Trying to make the tests work in Windows and Solaris, everywhere | Facundo Batista | 2007-05-25 | 1 | -11/+13 |
| | | | | else just works | ||||
* | Let's see if reading exactly what is written allow this live | Facundo Batista | 2007-05-24 | 1 | -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 was | Facundo Batista | 2007-05-24 | 1 | -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 tests | Facundo Batista | 2007-05-24 | 1 | -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 Brandl | 2007-05-21 | 2 | -6/+16 |
| | |||||
* | Added timeout support to HTTPSConnection, through the | Facundo Batista | 2007-05-21 | 1 | -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 Hettinger | 2007-05-21 | 1 | -0/+3 |
| | |||||
* | Cause posixfile to raise a DeprecationWarning. Documented as deprecated since | Brett Cannon | 2007-05-20 | 1 | -65/+68 |
| | | | | Ptyhon 1.5. | ||||
* | Move imgfile import to the global namespace to trigger an import error ASAP to | Brett Cannon | 2007-05-20 | 1 | -4/+1 |
| | | | | prevent creation of a test file. | ||||
* | Remove the macfs module. This led to the deprecation of macostools.touched(); | Brett Cannon | 2007-05-20 | 3 | -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 Cannon | 2007-05-20 | 3 | -100/+8 |
| | |||||
* | Improvements to NamedTuple's implementation, tests, and documentation | Raymond Hettinger | 2007-05-19 | 1 | -1/+2 |
| | |||||
* | Backport PEP 3110's new 'except' syntax to 2.6. | Collin Winter | 2007-05-18 | 1 | -2/+2 |
| | |||||
* | Verify neither dumps or loads overflow the stack and segfault. | Neal Norwitz | 2007-05-18 | 1 | -1/+21 |
| | |||||
* | Remove the gopherlib module. It has been raising a DeprecationWarning since | Brett Cannon | 2007-05-16 | 3 | -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 to | Neal Norwitz | 2007-05-16 | 1 | -0/+4 |
| | | | | | | lack of an infinite recursion check. Contributed by Damien Miller at Google. | ||||
* | Better tests for posixpath.commonprefix | Raymond Hettinger | 2007-05-11 | 1 | -0/+10 |
| | |||||
* | Deprecate os.popen* and popen2 module in favor of the subprocess module. | Neal Norwitz | 2007-05-11 | 4 | -14/+25 |
| | |||||
* | Don't ever report a failure when the sum of the reference count differences | Neal Norwitz | 2007-05-11 | 1 | -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 Winter | 2007-05-09 | 1 | -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 Cannon | 2007-05-05 | 3 | -45/+91 |
| | |||||
* | Fix those parts in the testsuite that assumed that sys.maxint would cause ↵ | Kristján Valur Jónsson | 2007-05-03 | 5 | -12/+21 |
| | | | | overflow on x64. Now the testsuite is well behaved on that platform. | ||||
* | Fix for #1303614 and #1174712: | Armin Rigo | 2007-05-02 | 3 | -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 Norwitz | 2007-04-27 | 1 | -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ónsson | 2007-04-26 | 1 | -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 Winter | 2007-04-25 | 1 | -0/+6 |
| | |||||
* | Convert test_ossaudiodev to use unittest. | Collin Winter | 2007-04-25 | 1 | -120/+125 |
| | |||||
* | Import and raise statement cleanup. | Collin Winter | 2007-04-25 | 1 | -17/+9 |
| | |||||
* | Change test_support.have_unicode to use True/False instead of 1/0. | Collin Winter | 2007-04-25 | 1 | -2/+2 |
| | |||||
* | Remove functionality from test_datetime.test_main() that does reference ↵ | Collin Winter | 2007-04-25 | 1 | -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 Winter | 2007-04-25 | 28 | -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 Norwitz | 2007-04-25 | 28 | -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 Winter | 2007-04-24 | 1 | -34/+0 |
| | |||||
* | Convert PyUnit -> unittest. | Collin Winter | 2007-04-24 | 1 | -11/+10 |
| | |||||
* | As specified in RFC 2616, 2xx code indicates that the client's | Facundo Batista | 2007-04-23 | 1 | -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 cover | Facundo Batista | 2007-04-22 | 1 | -0/+15 |
| | | | | | all the object methods. This is the final step to close the #451607 bug. | ||||
* | Revert r53997 as per | Armin Rigo | 2007-04-19 | 1 | -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 Winter | 2007-04-16 | 1 | -0/+2 |
| | |||||
* | When __slots__ are set to a unicode string, make it work the same as | Neal Norwitz | 2007-04-14 | 1 | -1/+17 |
| | | | | setting a plain string, ie don't expand to single letter identifiers. | ||||
* | Port r54805 from python25-maint branch: | Barry Warsaw | 2007-04-13 | 1 | -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 the | Walter Dörwald | 2007-04-12 | 1 | -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 Seilnacht | 2007-04-12 | 1 | -17/+0 |
| | | | | again. | ||||
* | SF 1193128: Let str.translate(None) be an identity transformation | Raymond Hettinger | 2007-04-12 | 1 | -0/+3 |
| | |||||
* | SF 1191699: Make slices picklable | Raymond Hettinger | 2007-04-11 | 1 | -0/+8 |
| |