Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Patch #1533909: the timeit module now accepts callables in addition to | Georg Brandl | 2007-03-13 | 1 | -11/+53 |
| | | | | | strings for the code to time and the setup code. Also added two convenience functions for instantiating a Timer and calling its methods. | ||||
* | Fix a tab. | Georg Brandl | 2007-03-13 | 1 | -2/+2 |
| | |||||
* | Patch #1537850: tempfile.NamedTemporaryFile now has a "delete" parameter | Georg Brandl | 2007-03-13 | 2 | -8/+28 |
| | | | | | which can be set to False to prevent the default delete-on-close behavior. | ||||
* | Patch #1605192: list allowed states in error messages for imaplib. | Georg Brandl | 2007-03-13 | 1 | -4/+8 |
| | |||||
* | Patch #1581073: add a flag to textwrap that prevents the dropping of | Georg Brandl | 2007-03-13 | 2 | -4/+16 |
| | | | | whitespace while wrapping. | ||||
* | Patch #1603688: ConfigParser.SafeConfigParser now checks values that | Georg Brandl | 2007-03-13 | 2 | -2/+23 |
| | | | | | are set for invalid interpolation sequences that would lead to errors on reading back those values. | ||||
* | Quick fix for tests that fail on systems with an encoding other | Lars Gustäbel | 2007-03-13 | 1 | -6/+7 |
| | | | | than 'iso8859-1'. | ||||
* | This is the implementation of POSIX.1-2001 (pax) format read/write | Lars Gustäbel | 2007-03-13 | 3 | -915/+1407 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | support. The TarInfo class now contains all necessary logic to process and create tar header data which has been moved there from the TarFile class. The fromtarfile() method was added. The new path and linkpath properties are aliases for the name and linkname attributes in correspondence to the pax naming scheme. The TarFile constructor and classmethods now accept a number of keyword arguments which could only be set as attributes before (e.g. dereference, ignore_zeros). The encoding and pax_headers arguments were added for pax support. There is a new tarinfo keyword argument that allows using subclassed TarInfo objects in TarFile. The boolean TarFile.posix attribute is deprecated, because now three tar formats are supported. Instead, the desired format for writing is specified using the constants USTAR_FORMAT, GNU_FORMAT and PAX_FORMAT as the format keyword argument. This change affects TarInfo.tobuf() as well. The test suite has been heavily reorganized and partially rewritten. A new testtar.tar was added that contains sample data in many formats from 4 different tar programs. Some bugs and quirks that also have been fixed: Directory names do no longer have a trailing slash in TarInfo.name or TarFile.getnames(). Adding the same file twice does not create a hardlink file member. The TarFile constructor does no longer need a name argument. The TarFile._mode attribute was renamed to mode and contains either 'r', 'w' or 'a'. | ||||
* | Patch #1449244: Support Unicode strings in | Martin v. Löwis | 2007-03-13 | 2 | -2/+11 |
| | | | | | email.message.Message.{set_charset,get_content_charset}. Will backport. | ||||
* | Patch #1569798: fix a bug in distutils when building Python from a | Georg Brandl | 2007-03-13 | 1 | -2/+2 |
| | | | | directory within sys.exec_prefix. | ||||
* | Patch #1542681: add entries for "with", "as" and "CONTEXTMANAGERS" to | Georg Brandl | 2007-03-13 | 1 | -0/+3 |
| | | | | pydoc's help keywords. | ||||
* | Patch #1555098: use str.join() instead of repeated string | Georg Brandl | 2007-03-13 | 1 | -9/+6 |
| | | | | concatenation in robotparser. | ||||
* | Patch #1635454: the csv.DictWriter class now includes the offending | Georg Brandl | 2007-03-13 | 1 | -3/+4 |
| | | | | | field names in its exception message if you try to write a record with a dictionary containing fields not in the CSV field names list. | ||||
* | Patch #1668100: urllib2 now correctly raises URLError instead of | Georg Brandl | 2007-03-13 | 2 | -18/+22 |
| | | | | OSError if accessing a local file via the file:// protocol fails. | ||||
* | Fix a typo where the variable name was not updated. | Brett Cannon | 2007-03-13 | 1 | -1/+1 |
| | |||||
* | Add test.test_support.transient_internet . Returns a context manager that | Brett Cannon | 2007-03-13 | 2 | -3/+14 |
| | | | | | | | | | nests test.test_support.TransientResource context managers that capture exceptions raised when the Internet connection is flaky. Initially using in test_socket_ssl but should probably be expanded to cover any test that should not raise the captured exceptions if the Internet connection works. | ||||
* | Whitespace normalization. | Tim Peters | 2007-03-12 | 18 | -522/+522 |
| | |||||
* | Patch #1670993: Refactor test_threadedtempfile.py to use unittest. | Collin Winter | 2007-03-12 | 2 | -46/+34 |
| | |||||
* | Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. ↵ | Collin Winter | 2007-03-12 | 2 | -0/+17 |
| | | | | | | Fixed by patch #922167. Will backport. | ||||
* | Patch #1678088: convert test_operations to use unittest, fold the result ↵ | Collin Winter | 2007-03-12 | 4 | -100/+72 |
| | | | | into test_dict. | ||||
* | Backport from Py3k branch: | Georg Brandl | 2007-03-12 | 1 | -4/+59 |
| | | | | | | | Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir. Had to change a few bits of the patch because classobjs and __methods__ are still in Py2.6. | ||||
* | Patch #1677862: Require a space or tab after import in .pth files. | Martin v. Löwis | 2007-03-12 | 1 | -1/+1 |
| | |||||
* | Sane humans would call these invalid tests, but Andrew McNamara pointed out | Skip Montanaro | 2007-03-12 | 1 | -0/+4 |
| | | | | | that given the inputs in these tests Excel does indeed produce the output these tests expect. Document that for future confused folks. | ||||
* | Tokio Kikuchi's fix for SF bug #1629369; folding whitespace allowed in the | Barry Warsaw | 2007-03-12 | 3 | -4/+17 |
| | | | | | | | | | display name of an email address, e.g. Foo \tBar <foo@example.com> Test case added by Barry. | ||||
* | Patch #1678662: ftp.python.org does not exist. So the testcode in urllib.py ↵ | Collin Winter | 2007-03-12 | 1 | -1/+1 |
| | | | | | | | must use a more stable FTP. Will backport. | ||||
* | Fix resource leak reported in SF #1516995. | Vinay Sajip | 2007-03-11 | 1 | -0/+2 |
| | |||||
* | Patch #1192590: Fix pdb's "ignore" and "condition" commands so they trap the ↵ | Collin Winter | 2007-03-11 | 1 | -2/+10 |
| | | | | | | IndexError caused by passing in an invalid breakpoint number. Will backport. | ||||
* | Add missing "return" statements in exception handler. | Georg Brandl | 2007-03-11 | 1 | -0/+2 |
| | |||||
* | Patch #1599845: Add an option to disable the implicit calls to server_bind() ↵ | Collin Winter | 2007-03-10 | 3 | -8/+11 |
| | | | | and server_activate() in the constructors for TCPServer, SimpleXMLRPCServer and DocXMLRPCServer. | ||||
* | Convert an assert to a raise so it works even in the presence of -O. | Collin Winter | 2007-03-10 | 1 | -2/+4 |
| | |||||
* | Simplify a little by handling the TCP case first. | Neal Norwitz | 2007-03-10 | 1 | -16/+16 |
| | | | | | Update to use predominant style of spaces around = in args list and print to stderr if debugging. | ||||
* | Bug #1531963: Make SocketServer.TCPServer's server_address always be equal ↵ | Collin Winter | 2007-03-10 | 2 | -0/+2 |
| | | | | | | to calling getsockname() on the server's socket. Will backport. | ||||
* | * Unlink test files before and after each test; hopefully this will cut down ↵ | Collin Winter | 2007-03-10 | 1 | -105/+62 |
| | | | | | | | on recent buildbot failures in test_islink. * Drop safe_remove() in favor of test_support.unlink(). * Fix the indentation of test_samefile so that it runs. | ||||
* | Hashing simplification pointed out by Thomas Wouters. | Collin Winter | 2007-03-09 | 1 | -4/+3 |
| | |||||
* | Bug #1651235: When a tuple was passed to a ctypes function call, | Thomas Heller | 2007-03-09 | 1 | -1/+13 |
| | | | | | | | | Python would crash instead of raising an error. The crash was caused by a section of code that should have been removed long ago, at that time ctypes had other ways to pass parameters to function calls. | ||||
* | Patch #1491866: change the complex() constructor to allow parthensized ↵ | Collin Winter | 2007-03-09 | 1 | -0/+12 |
| | | | | forms. This means complex(repr(x)) now works instead of raising a ValueError. | ||||
* | Fix bug #1646630: ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0) | Thomas Heller | 2007-03-09 | 2 | -2/+4 |
| | | | | returned string up to the first NUL character. | ||||
* | Patch #957003: Implement smtplib.LMTP. | Martin v. Löwis | 2007-03-09 | 1 | -1/+46 |
| | |||||
* | Patch #1481079: Support of HTTP_REFERER in CGIHTTPServer.py | Collin Winter | 2007-03-09 | 1 | -1/+4 |
| | |||||
* | Introduce test.test_support.TransientResource. It's a context manager to | Brett Cannon | 2007-03-08 | 2 | -1/+27 |
| | | | | | | | | | | | surround calls to resources that may or may not be available. Specifying the expected exception and attributes to be raised if the resource is not available prevents overly broad catching of exceptions. This is meant to help suppress spurious failures by raising test.test_support.ResourceDenied if the exception matches. It would probably be good to go through the various network tests and surround the calls to catch connection timeouts (as done with test_socket_ssl in this commit). | ||||
* | Patch #1668482: don't use '-' in mkstemp | Collin Winter | 2007-03-08 | 1 | -1/+1 |
| | |||||
* | SF #1637850: make_table in difflib did not work with unicode | Raymond Hettinger | 2007-03-08 | 1 | -5/+4 |
| | |||||
* | Backported r54226 from p3yk: Move test_unittest, test_doctest and ↵ | Collin Winter | 2007-03-08 | 1 | -0/+3 |
| | | | | test_doctest2 higher up in the testing order. | ||||
* | SF 1676321: empty() returned wrong result | Raymond Hettinger | 2007-03-08 | 1 | -1/+1 |
| | |||||
* | Windows doesn't support negative timestamps. Skip the tests involving them | Guido van Rossum | 2007-03-07 | 1 | -0/+7 |
| | | | | if os.name == "nt". | ||||
* | Add some sanity checks to unittest.TestSuite's addTest(s) methods. | Georg Brandl | 2007-03-07 | 2 | -0/+22 |
| | | | | Fixes #878275. | ||||
* | Patch #1675471: convert test_pty to unittest. | Georg Brandl | 2007-03-07 | 2 | -116/+123 |
| | |||||
* | Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', ''). | Martin v. Löwis | 2007-03-07 | 7 | -39/+61 |
| | |||||
* | Patch #787789: allow to pass custom TestRunner instances to unittest's | Georg Brandl | 2007-03-07 | 1 | -4/+12 |
| | | | | main() function. | ||||
* | Patches #1550273, #1550272: fix a few bugs in unittest and add a | Georg Brandl | 2007-03-07 | 2 | -36/+2329 |
| | | | | comprehensive test suite for the module. |