summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1630118: add a SpooledTemporaryFile class to tempfile.Collin Winter2007-03-191-1/+103
|
* Patch #1678339: test case for bug in difflib.Georg Brandl2007-03-181-3/+34
|
* Patch #1675423: PyComplex_AsCComplex() now tries to convert an objectGeorg Brandl2007-03-171-51/+195
| | | | | | | to complex using its __complex__() method before falling back to the __float__() method. Therefore, the functions in the cmath module now can operate on objects that define a __complex__() method. (backport)
* Patch 1339796: add a relpath() function to os.path.Collin Winter2007-03-162-1/+22
|
* Remove test/output/test_popen2 (missed in r54417).Collin Winter2007-03-161-9/+0
|
* Patch #1676994: Refactor test_popen2 to use unittest.Collin Winter2007-03-161-68/+82
|
* Patch #1623563: allow __class__ assignment for classes with __slots__.Žiga Seilnacht2007-03-161-0/+45
| | | | | The old and the new class are still required to have the same slot names, but the order in which they are specified is not relevant.
* Patch #1273829: os.walk() now has a "followlinks" parameter. If set toGeorg Brandl2007-03-161-6/+34
| | | | | True (which is not the default), it visits symlinks pointing to directories.
* Patch #1642547: Fix an error/crash when encountering syntax errors in ↵Collin Winter2007-03-161-0/+50
| | | | | | complex if statements. Will backport.
* Patch #1462488: prevent a segfault in object_reduce_ex() by splittingŽiga Seilnacht2007-03-151-0/+32
| | | | | the implementation for __reduce__ and __reduce_ex__ into two separate functions. Fixes bug #931877. Will backport.
* Raise ResourceDenied in test_urllib2net when the Net connection goes bad.Brett Cannon2007-03-141-1/+2
|
* Patch #1559413: Fix test_cmd_line if sys.executable contains a space.Martin v. Löwis2007-03-141-1/+1
| | | | Will backport.
* Patch #1680015: Don't modify __slots__ tuple if it contains an unicodeŽiga Seilnacht2007-03-141-0/+23
| | | | | name. Remove a reference leak that happened if the name could not be converted to string. Will backport.
* Bug #767111: fix long-standing bug in urllib which caused anGeorg Brandl2007-03-141-0/+9
| | | | | AttributeError instead of an IOError when the server's response didn't contain a valid HTTP status line.
* Patch #1185447: binascii.b2a_qp() now correctly quotes binary charactersGeorg Brandl2007-03-131-0/+9
| | | | | | with ASCII value less than 32. Also, it correctly quotes dots only if they occur on a single line, as opposed to the previous behavior of quoting dots if they are the second character of any line.
* Patch #957650: "%var%" environment variable references are now properlyGeorg Brandl2007-03-131-0/+7
| | | | | expanded in ntpath.expandvars(), also "~user" home directory references are recognized and handled on Windows.
* Patch #1444529: the builtin compile() now accepts keyword arguments.Georg Brandl2007-03-131-0/+9
| | | | (backport)
* Fix a tab.Georg Brandl2007-03-131-2/+2
|
* Patch #1537850: tempfile.NamedTemporaryFile now has a "delete" parameterGeorg Brandl2007-03-131-2/+19
| | | | | which can be set to False to prevent the default delete-on-close behavior.
* Patch #1581073: add a flag to textwrap that prevents the dropping ofGeorg Brandl2007-03-131-0/+8
| | | | whitespace while wrapping.
* Patch #1603688: ConfigParser.SafeConfigParser now checks values thatGeorg Brandl2007-03-131-0/+12
| | | | | 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 otherLars Gustäbel2007-03-131-6/+7
| | | | than 'iso8859-1'.
* This is the implementation of POSIX.1-2001 (pax) format read/writeLars Gustäbel2007-03-132-581/+761
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #1668100: urllib2 now correctly raises URLError instead ofGeorg Brandl2007-03-131-5/+5
| | | | OSError if accessing a local file via the file:// protocol fails.
* Fix a typo where the variable name was not updated.Brett Cannon2007-03-131-1/+1
|
* Add test.test_support.transient_internet . Returns a context manager thatBrett Cannon2007-03-132-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 Peters2007-03-1212-502/+502
|
* Patch #1670993: Refactor test_threadedtempfile.py to use unittest.Collin Winter2007-03-122-46/+34
|
* Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. ↵Collin Winter2007-03-122-0/+17
| | | | | | Fixed by patch #922167. Will backport.
* Patch #1678088: convert test_operations to use unittest, fold the result ↵Collin Winter2007-03-124-100/+72
| | | | into test_dict.
* Backport from Py3k branch:Georg Brandl2007-03-121-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.
* Sane humans would call these invalid tests, but Andrew McNamara pointed outSkip Montanaro2007-03-121-0/+4
| | | | | that given the inputs in these tests Excel does indeed produce the output these tests expect. Document that for future confused folks.
* Fix resource leak reported in SF #1516995.Vinay Sajip2007-03-111-0/+2
|
* Convert an assert to a raise so it works even in the presence of -O.Collin Winter2007-03-101-2/+4
|
* Bug #1531963: Make SocketServer.TCPServer's server_address always be equal ↵Collin Winter2007-03-101-0/+1
| | | | | | to calling getsockname() on the server's socket. Will backport.
* * Unlink test files before and after each test; hopefully this will cut down ↵Collin Winter2007-03-101-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.
* Patch #1491866: change the complex() constructor to allow parthensized ↵Collin Winter2007-03-091-0/+12
| | | | forms. This means complex(repr(x)) now works instead of raising a ValueError.
* Introduce test.test_support.TransientResource. It's a context manager toBrett Cannon2007-03-082-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).
* Backported r54226 from p3yk: Move test_unittest, test_doctest and ↵Collin Winter2007-03-081-0/+3
| | | | test_doctest2 higher up in the testing order.
* Windows doesn't support negative timestamps. Skip the tests involving themGuido van Rossum2007-03-071-0/+7
| | | | if os.name == "nt".
* Add some sanity checks to unittest.TestSuite's addTest(s) methods.Georg Brandl2007-03-071-0/+13
| | | | Fixes #878275.
* Patch #1675471: convert test_pty to unittest.Georg Brandl2007-03-072-116/+123
|
* Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', '').Martin v. Löwis2007-03-073-10/+23
|
* Patches #1550273, #1550272: fix a few bugs in unittest and add aGeorg Brandl2007-03-071-17/+2275
| | | | comprehensive test suite for the module.
* Patch #1001604: glob.glob() now returns unicode filenames if it wasGeorg Brandl2007-03-071-0/+10
| | | | given a unicode argument and os.listdir() returns unicode filenames.
* Patch for bug #1633621: if curses.resizeterm() orWalter Dörwald2007-03-061-0/+9
| | | | | curses.resize_term() is called, update _curses.LINES, _curses.COLS, curses.LINES and curses.COLS.
* Patch #1654417: make operator.{get,set,del}slice use the full rangeGeorg Brandl2007-03-061-0/+6
| | | | of Py_ssize_t.
* Patch #1638879: don't accept strings with embedded NUL bytes in long().Georg Brandl2007-03-061-0/+5
|
* Patch #1646728: datetime.fromtimestamp fails with negativeGuido van Rossum2007-03-061-0/+9
| | | | | | fractional times. With unittest. Somebody please backport to 2.5.
* Patch #912410: Replace HTML entity references for attribute valuesMartin v. Löwis2007-03-061-0/+5
| | | | in HTMLParser.